I am trying to write a macro that will go through a document a reapply base page settings if an author has accidentally/on purpose altered them.
My dilemna is this...
1. What VBA command should I use to get the current section number?
2. How can I move the selection point to the beginning of each section to apply my page settings (they will be different for portrait and landscape pages)?
I have shelled out the macro as a For/Next Loop. Currently, the macro checks the PageSetup.Orientation property (0=portrait/1=landscape) and then uses the Select Case statement to apply various PageSetup properties.
Any advice on how to get items 1 and 2 working would be greatly appreciated. Any other comments on my approach would also be welcome.
Thanks,
Andrew in Kansas City