Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro Font Size

Status
Not open for further replies.

Casein

Technical User
Jan 6, 2002
7
0
0
US
When I create a Macro letterhead in Office Word XP, I cannot get the macro to remember the font size that I chose. It runs the Macro in the default size.
 
Documents.Add DocumentType:=wdNewBlankDocument
Selection.Font.Bold = wdToggle
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.TypeText Text:="PRESTIGE TECH CO."
Selection.TypeParagraph
Selection.TypeText Text:="5300 West Atlantic Ave. #412"
Selection.TypeParagraph
End Sub
Sub LetterHead()
'
' LetterHead Macro
' Macro recorded 10/15/2002 by Hugh Henley
'
Selection.Font.Bold = wdToggle
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.TypeText Text:="THIS IS MY LETTERHEAD"
Selection.TypeParagraph
End Sub


This is the Macro. I started by selecting font size 22 in the pull down box.It macros out in the default of size 12.
 

Can't you just edit the macro and add the following line to sub LetterHead?

Selection.Font.Size = 22

You'll have to set it back to a different size when you're done.
 
Thank you for that suggestion, but why do I have this problem with Word XP? There must be a setting turned off, because I have the same problem on the same program running on another computer,Never had the problem with Office 97.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top