font change

T

ted medin

I use the following code to insert a template with 'times new roman' font.
When I get thru the font is 'arial'. So what do I do to keep the 'times new
roman' font. TIA

Selection.InsertFile FileName:="c:\program files\microsoft
office\templates\newnewsletterrpl.dot", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
Selection.GoTo What:=wdGoToBookmark, Name:="region"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.TypeText Text:=rstProj![project region]
Selection.TypeParagraph
Selection.TypeBackspace
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.HomeKey Unit:=wdLine
End If
 
C

Charles Kenyon

Learn how to use styles. Virtually all of your recorded macro has nothing to
do with inserting text, only the following:
Selection.InsertFile FileName:="c:\program files\microsoft
office\templates\newnewsletterrpl.dot", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False

See the IncludeText Field Tutorial at
http://addbalance.com/word/download.htm#Tutorials for details on what is
happening.



ted medin said:
I use the following code to insert a template with 'times new roman' font.
When I get thru the font is 'arial'. So what do I do to keep the 'times
new
roman' font. TIA

Selection.InsertFile FileName:="c:\program files\microsoft
office\templates\newnewsletterrpl.dot", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
Selection.GoTo What:=wdGoToBookmark, Name:="region"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.TypeText Text:=rstProj![project region]
Selection.TypeParagraph
Selection.TypeBackspace
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.HomeKey Unit:=wdLine
End If
--
_________________________________
in Christ's matchless name
73 ted & colleen
n6trf kc6rue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top