A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

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.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Changing Margins in multiple documents



 
 
Thread Tools Display Modes
  #1  
Old March 5th 07, 09:32 PM posted to microsoft.public.word.pagelayout
Julie S
external usenet poster
 
Posts: 1
Default Changing Margins in multiple documents

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  
Old March 8th 07, 10:23 AM posted to microsoft.public.word.pagelayout
Shauna Kelly
external usenet poster
 
Posts: 571
Default Changing Margins in multiple documents

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright 2004-2022 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.