![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
The elusive syntax you were looking for is
Code:
With oRng.Find
.Font.Bold = True
'etc
![]() I have to say that while your code works in Word 2013, it now doesn't work in 2007 or 2010. For those versions you would need to set the username and initials as before, with the option for 2013 (or use your old macro). You don't really need the screen control commands in the macro. You cannot add the highlight dialog to a userform, but you can emulate it with a group of small command buttons coloured to match the highlight colour selection. You will find ColorCop very useful when identifying colours for use in userforms.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#2
|
|||
|
|||
|
I found that if I add "oComment.Initial = "MN" here:
Code:
Set oComment = oDoc.Comments.Add(oRng, MyString)
oComment.Author = "MNathan"
oComment.Initial = "MN"
I will say one thing: the new version is A LOT faster than the old one. Thanks again. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
formula in excel 2007 works not in 2013
|
piper7971 | Excel | 10 | 07-06-2015 02:09 PM |
2013 presentation's animation not working in 2007
|
captainship | PowerPoint | 1 | 04-16-2015 09:35 AM |
Macro fails to add image border in Word 2007
|
samhdc | Word | 1 | 03-30-2012 04:56 AM |
Search always fails in Word 2007
|
Sachelis | Word | 2 | 01-28-2011 08:50 AM |
| Saving a Word 2007 document as a PDF fails | dcabrames | Word | 20 | 01-21-2011 03:07 PM |