Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2015, 09:33 AM
mrlemmer11 mrlemmer11 is offline Put the cursor at the end of a comment Windows 7 32bit Put the cursor at the end of a comment Office 2010 32bit
Novice
Put the cursor at the end of a comment
 
Join Date: Jun 2015
Posts: 13
mrlemmer11 is on a distinguished road
Default Put the cursor at the end of a comment

Hello All,



Using VBA, how do I instruct the cursor to go one space/character to the right of activedocument.comment(x)?
Reply With Quote
  #2  
Old 06-25-2015, 09:56 AM
gmaxey gmaxey is offline Put the cursor at the end of a comment Windows 7 32bit Put the cursor at the end of a comment Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

The comment reference, ballon, or rangestory?

Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Word.Range
On Error GoTo lbl_Exit
Set oRng = ActiveDocument.Comments(1).Reference
oRng.Collapse wdCollapseEnd
oRng.Move wdCharacter, 1
oRng.Select
lbl_Exit:
Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put the cursor at the end of a comment A nifty tool to jump from table to table, comment to comment Bengt Word 3 05-13-2015 01:53 PM
How do I move the cursor back to the text from a comment without using the mouse? MsT Word 2 04-24-2014 05:48 PM
from one comment to next comment gsrikanth Excel Programming 0 06-15-2012 10:52 PM
Put the cursor at the end of a comment How to insert a (balloon) comment and how to disable comment feature in Word2007? pstein Word 2 03-31-2012 05:31 AM
comment format jibby Word 5 02-07-2010 06:59 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:52 AM.


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