MS Word change page orientation


#1

Hi

Does anyone know how to change the orientation of pages in MS Word, in a workflow? I have tried using hotkeys and understand that Word macros cannot be activated using UiP.

Thanks


#2

hi @tobor

Can you please try using recording? For example opening word -> clicking the Layout tab -> And make changes using click activities.

Regards,
Gourav


#3

Yeah try the click activities.

But if that doesn’t work
you could try getting key presses to work.
ALT shows the letter sequence you need to press.

ALT + P + O + Down <— would be for page layout


#4

Thank you @Gourav_Kumar and @ClaytonM . The recording worked perfectly.


#5

What about executing a macro on startup to avoid the need for UI automation?

With the new Invoke Code activity we’ll soon be able to do whatever we want in Word :slight_smile:


#6

Thank you for the suggestion @richarddenton. However, if I run the macro on startup, would that not cause all of the word documents to be created in landscape?