View Single Post
 
Old 05-01-2016, 05:41 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by jeffreybrown View Post
1) How can I modify a style so it will produce TNR and 10 along with the alignment.
Why not create a Style with the required attributes? If you add that Style to the document template, it will be available any time you need it. See:
http://www.dummies.com/how-to/conten...word-2013.html
http://www.dummies.com/how-to/conten...word-2010.html
http://www.addbalance.com/usersguide/styles.htm
Quote:
Originally Posted by jeffreybrown View Post
2) Also, are there any areas in this macro that could be modified to further use any built in styles within Word?
Well, if you create a Style named 'Tbl', whose attributes correspond to:
Code:
            .Range.Font.Name = "Times New Roman"
            .Range.Font.Size = 10
            .Range.ParagraphFormat.Alignment = wdAlignParagraphCenter
you could replace all those lines with:
Code:
            .Range.Style = "Tbl"
Similarly, if you create a Style named 'TblHdr', whose attributes correspond to:
• Name = "Times New Roman"
• Size = 10
• Bold = True
• Alignment = wdAlignParagraphLeft
you could replace:
Code:
                    .Range.Style = "Strong"
                    .Range.ParagraphFormat.Alignment = wdAlignParagraphLeft
with:
Code:
                    .Range.Style = "TblHdr"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote