cancel
Showing results for 
Search instead for 
Did you mean: 

MS Word VBO

TomMason
Level 4
Hi All,

Hope you're well?

Quick question as I can't remember it offhand....

I am using the MS Word VBO to format a Word document (basically just opening it and then a quick format), however we've recently upgraded to v6.10 and I need the word document to set a Font size but also set up a page orientation as Landscape, as the file I am opening is Portrait.

How do I manage this? Can't seem to find the answer?

Kindest Regards,

Tom
2 REPLIES 2

HarpreetKaur
Level 7
Hello Tom,

A very quick way would be to simply add the below code stage in your Word VBO:
Dim doc as Object = GetDocument(handle,documentname)
doc.PageSetup.Orientation=1

1 is the value for Landscape, 0 for Portrait.

Regards
Harpreet

MiguelCarrillo
Level 5
Hello Tom

I attached you a process and an extend version of the MS Word VBO object, that includes 2 new actions: 
  • Set Document Orientation
  • Set Font Size
Hope that help you with the process your making.
If you have any doubts. Feel free to contact me