Reply
 
Thread Tools Display Modes
  #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
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
Running document macro from server Intravler New Users 0 March 4th 05 04:33 AM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 06:06 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"