View Single Post
 
Old 12-12-2022, 02:11 PM
bronco9588 bronco9588 is offline Windows 10 Office 2019
Novice
 
Join Date: Dec 2022
Posts: 4
bronco9588 is on a distinguished road
Default

So here is an example. I put the macro into a link on the quick reference toolbar and run 1x. I then click on reply in the comment. I then click on my macro link.

You could also add a comment and run the macro without pressing the blue arrow on comment.

Code:
Sub Macro1()
    Selection.TypeText Text:="Test Document"
    Selection.Comments.Add Range:=Selection.Range, Text:="Hi There"
    Selection.WholeStory
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
End Sub
I would like to macro to post the active comment and then return to the beginning of the document. Of note, it doesn't look like you can select macros from within a comment.
Reply With Quote