Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Barnet Barnet is offline
external usenet poster
 
Posts: 26
Default Newbie macro help please

Hi Doug,

Thanks so much, this did the trick! I really appreciate your efforts on my
behalf.

Barnet

"Doug Robbins - Word MVP" wrote:

Yes, this is the place to ask for assistance.

See the following articles:

"What do I do with macros sent to me by other newsgroup readers to help me
out?" at:

http://www.word.mvps.org/FAQs/Macros...eateAMacro.htm

"How to assign a Word command or macro to a hot-key" at:

http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm

"How to assign a Word command or macro to a toolbar or menu" at:

http://www.word.mvps.org/FAQs/Custom...oToToolbar.htm




--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Barnet" wrote in message
...
Doug wrote:

Use:

Dim prange As Range
With ActiveDocument
Set prange = .Sections(1).Footers(wdHeaderFooterPrimary).Range
.Fields.Add Range:=prange, Type:=wdFieldEmpty, Text:="page"
prange.ParagraphFormat.Alignment = wdAlignParagraphCenter
End With

If you want the page number on the right, replace wdAlignParagraphCenter
with wdAlignParagraphRight, similarly for left.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

Thanks so much Doug, I appreciate your efforts. Being completely
unfamiliar
with Visual Basic, I need some more assistance in knowing what to do with
this code.

I can find the box to edit Macros. However, simply pasting in the code
doesn't seem to make anything happen when I then try to run the Macro

Would you be kind enough to tell me what to do with your code so that I
can
make the macro work?

I assume that this post is to the newsgroup, so I hope it's OK that I ask
you here.

Thanks,

Barnet




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
Newbie question - how can I run a macro on a protected document Mayavi New Users 2 April 11th 07 05:26 PM
[newbie] better vba coding [email protected] Microsoft Word Help 5 September 14th 05 06:23 PM
NewBie Question 2 Please Help Tom Grassi New Users 2 September 9th 05 05:03 PM
Newbie to Word Please help Tom Grassi New Users 8 September 9th 05 06:07 AM
Newbie can't get MM to work JLB Mailmerge 7 April 11th 05 07:26 AM


All times are GMT +1. The time now is 03:43 AM.

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"