Thread: [Solved] Code doesnt work properly
View Single Post
 
Old 04-02-2015, 07:52 AM
ksigcajun ksigcajun is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
There is no 'pasting' involved. However add a line to reset the font and it works fine here.

Code:
If ActiveDocument.Bookmarks.Exists("BM7") Then
        Set orng = ActiveDocument.Bookmarks("BM7").Range
        orng.Text = strDetails
        orng.Bookmarks.Add "BM7"
        orng.Font.Reset
Now its always displaying the text as Verdana, 10, italic and in blue.

Even when I correct it as Arial, 10, black....it still switches back when I change the drop down option.

Any suggestions?
Reply With Quote