View Single Post
  #1   Report Post  
Amy
 
Posts: n/a
Default Need Help With Macro for Page Setup

Hello,

I am trying to create two macros, one for setting up the pages for
single-sided printing (Page Breaks = New Page) and one for double-sided
printing (Page Breaks = Odd Page). I have tried using the recorder and just
typing in the macro, but I keep getting the same error: "Run-time error
'4608': Value out of range"
I am using Windows 2000 and Word 2000.
Here's what my 2 macros look like:

Sub MakeSingleSided()
Selection.HomeKey Unit:=wdStory
With ActiveDocument.PageSetup
.SectionStart = wdSectionNewPage
.OddAndEvenPagesHeaderFooter = False
End With
End Sub

Sub MakeDoubleSided()
Selection.HomeKey Unit:=wdStory
With ActiveDocument.PageSetup
.SectionStart = wdSectionOddPage
.OddAndEvenPagesHeaderFooter = True
End With
End Sub

Any help would be appreciated!

Thanks,
Amy