Rob said:
Can anyone give me step by step guidance on how to create a button that will
turn the document layout from portrait to landscape? I know how to actually
create the button but not how to create the relevant macro.
Thanks for any help.
Rob Graham
Hi Graham - seems like you need to record a macro....
If you are going to record a macro which automates processes for
document formatting, your will need a document open on the screen. You
can use an existing document or use a blank document.
Click on Tools, Macro, Record New Macro. A Record Macro dialog box
will appear.
In the Macro Name box, type a name for your macro (you can leave it
with the suggested name if you wish).
You can now choose whether to assign the macro to a Toolbar as an icon
or assign it to a shortcut key on your keyboard.
Assign a macro to a toolbar as an icon (I think you may have already
done this bit, but I will carry on anyway)...
In the Record Macro dialog box, click on Toolbars button. A Customize
Dialog box will appear.
From the Commands list on the right, click on the
Normal.NewMacros.macroname item and drag the command onto one of your
toolbars or to the menu bar.
Once you have dragged the command onto the toolbar, the Modify
Selection button will become enabled in the Customize dialog box.
Click on Modify Selection. To change the text on your icon remove the
text from the Name box and type something meaningful. When you are
finished typing the new name, press the Enter key. If you want your
icon to have a picture click on the Change Button Image and choose a
picture from the list. If you want your icon to to display the Image
and the Text click on Image and Text. If you want to display just the
Image click on Text Only (In Menus).
When you are finished setting up your button, click on the Close button
of the Customize Dialog Box.
YOU ARE NOW IN RECORD MODE, ANY KEYSTROKES YOU PRESS FROM NOW ON WILL
BE RECORDED.
Recording the macro - A small Recoding toolbar will now be visible
The first button with the square will stop the recording and the other
button with the lines and the dot will pause the recording.
Pausing the recording is useful if you want to perform tasks which
should not be included in the recording.
In this instance you are going to record a macro which changes the
document layout from Portrait to Landscape.
Click on File, PageSet up, select Landscape option (I am working in
Word 2003 and the portrait landscape options on available on the
Margins tab, can't remember what tab they are located under on previous
versions of word though - sorry).
Click on OK and then click on the Stop Recording button on the Macro
Recording toolbar.
Job Done. The next time you want to change document to Landscape, just
click on the button you created.
Hope this is helpful.
Regards
Lynn