#1
|
|||
|
|||
Inserting comment bubbles in MSWord?
Hi all,
I have a problem, and I want to know if a macro can solve it: I'd like a macro that can go through an MSWord document, find every occurrence of a text string, and then highlight the string and create a comment bubble (the kind you get using "track changes") that contains a second text string (e.g., "This seems wrong."). Can macros insert comment bubbles in that sort of way? Thanks for your help! Amitrus PS: I'm a bit new to this, so forgive me if any of my questions seem silly. |
#2
|
||||
|
||||
Cross-posted at: http://www.vbaexpress.com/forum/showthread.php?t=45255
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Apologies for the cross-posting.
I managed to get a solution to the problem. The following works: Sub CommentBubble() ' ' CommentBubble Macro ' ' Dim range As range Set range = ActiveDocument.Content Do While range.Find.Execute("aaa") = True ActiveDocument.Comments.Add range, "my comment" Loop End Sub |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to insert a (balloon) comment and how to disable comment feature in Word2007? | pstein | Word | 2 | 03-31-2012 05:31 AM |
Disappearing comment bubbles | ikklejaneo | Word | 1 | 07-11-2011 01:20 PM |
Color of comment bubbles | weston | Word | 0 | 06-28-2011 01:25 PM |
Resetting to MSWord to default | NepalKat | Word | 2 | 01-27-2011 07:29 AM |
Saving to Desktop from MSWord | greeninmexico | Word | 1 | 01-05-2011 08:30 PM |