devanrose33
New Member
- Joined
- Dec 8, 2015
- Messages
- 6
Hi,
I'm writing a macro in Microsoft Word 2010. The macro itself is inserting and deleting bookmarks based on user inputs in an excel document.
There is one table in this document that is 6 pages long and I adjusted the orientation to Landscape for these pages only. The rest of this document is portrait.
When I run my macro, everything runs correctly but it changes these few pages orientation back to portrait. Is there any kind of code I can insert in the code to prevent the page setup from changing?
Or, if not, a way to tell the word VBA to adjust the orientation from page # - #
Thanks!
I'm writing a macro in Microsoft Word 2010. The macro itself is inserting and deleting bookmarks based on user inputs in an excel document.
There is one table in this document that is 6 pages long and I adjusted the orientation to Landscape for these pages only. The rest of this document is portrait.
When I run my macro, everything runs correctly but it changes these few pages orientation back to portrait. Is there any kind of code I can insert in the code to prevent the page setup from changing?
Or, if not, a way to tell the word VBA to adjust the orientation from page # - #
Thanks!