![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
I have 100+ 1-page Word documents for which I have to change the right
margin. Is there a way to do this without having to open each and every document? I'm using Word 2003-SP2. -- Thanks, Julie |
Ads | |
#2
|
|||
|
|||
![]()
Hi Julie
No, there's no way to do it without opening each document. But you can automate that. If all the documents are in one folder, use code like the code at http://www.word.mvps.org/FAQs/MacrosVBA/BatchFR.htm I haven't tested this, but I think the only modifications to that code that you would need would be the following: Delete the following: 'Display dialog on first loop only Dialogs(wdDialogEditReplace).Show and replace it with the following (change the 3 to suit the margin you want) myDoc.Sections(1).PageSetup.TopMargin = centimetrestopoints(3) And, delete this too: With Dialogs(wdDialogEditReplace) .ReplaceAll = 1 .Execute End With and replace it with the following (change the 3 to suit the margin you want) myDoc.Sections(1).PageSetup.TopMargin = centimetrestopoints(3) Hope this helps. Shauna Kelly. Microsoft MVP. http://www.shaunakelly.com/word "Julie S" wrote in message ... I have 100+ 1-page Word documents for which I have to change the right margin. Is there a way to do this without having to open each and every document? I'm using Word 2003-SP2. -- Thanks, Julie |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing multiple documents at once | MosheMo | Microsoft Word Help | 1 | December 11th 06 08:02 PM |
Changing a Header in Multiple Documents without opening them all? | DBD | Microsoft Word Help | 2 | October 10th 06 03:55 AM |
Changing default language across multiple documents | paddy | Microsoft Word Help | 1 | January 27th 06 05:05 PM |
Resetting margins is changing other margins | jammamom | Page Layout | 1 | October 18th 05 08:36 PM |
merge multiple documents with different margins | jka319 | Mailmerge | 7 | July 8th 05 08:57 AM |