Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2013, 09:31 PM
amitrus amitrus is offline Inserting comment bubbles in MSWord? Mac OS X Inserting comment bubbles in MSWord? Office for Mac 2011
Novice
Inserting comment bubbles in MSWord?
 
Join Date: Feb 2013
Posts: 2
amitrus is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 02-06-2013, 11:22 PM
macropod's Avatar
macropod macropod is offline Inserting comment bubbles in MSWord? Windows 7 64bit Inserting comment bubbles in MSWord? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

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]
Reply With Quote
  #3  
Old 02-07-2013, 07:53 AM
amitrus amitrus is offline Inserting comment bubbles in MSWord? Mac OS X Inserting comment bubbles in MSWord? Office for Mac 2011
Novice
Inserting comment bubbles in MSWord?
 
Join Date: Feb 2013
Posts: 2
amitrus is on a distinguished road
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting comment bubbles in MSWord? How to insert a (balloon) comment and how to disable comment feature in Word2007? pstein Word 2 03-31-2012 05:31 AM
Inserting comment bubbles in MSWord? 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
Inserting comment bubbles in MSWord? Saving to Desktop from MSWord greeninmexico Word 1 01-05-2011 08:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft