B
brinded
I've seen a few postings on how to set up macros to format comment
windows.
To avoid using the mouse and pull-down menu I've created my own simple
macro for inserting comments - this works fine in essence.
However, the result is a new blank comment in the appropriate cell -
I then have to go to the 'insert' menu and select 'edit comment' to
paste my text, thus defeating the object of avoiding menus.
I've tried to get the macro to paste the clipboard contents into the
comment, but this does not seem to work. Here's my latest failed
attempt:
ActiveCell.AddComment
ActiveCell.comment.Visible = False
ActiveCell.comment.Text Text:="david gleeson:" & vbLf & ""
Selection.ShapeRange.ScaleWidth 6.21, msoFalse, msoScaleFromTopLeft
ActiveCell.comment.Shape.Select True
ActiveCell.comment.Text Text:="blah, blah, blah"
End Sub
Note: In recording the macro I enlarged the size of the comment box (so
that it doesn't look like one long strip when pasting lengthy text), I
selected username and used cmd-B to undo bold type. The latter doesn't
seem to have been logged/recorded in the macro.
Any help appreciated. Regards, David
windows.
To avoid using the mouse and pull-down menu I've created my own simple
macro for inserting comments - this works fine in essence.
However, the result is a new blank comment in the appropriate cell -
I then have to go to the 'insert' menu and select 'edit comment' to
paste my text, thus defeating the object of avoiding menus.
I've tried to get the macro to paste the clipboard contents into the
comment, but this does not seem to work. Here's my latest failed
attempt:
ActiveCell.AddComment
ActiveCell.comment.Visible = False
ActiveCell.comment.Text Text:="david gleeson:" & vbLf & ""
Selection.ShapeRange.ScaleWidth 6.21, msoFalse, msoScaleFromTopLeft
ActiveCell.comment.Shape.Select True
ActiveCell.comment.Text Text:="blah, blah, blah"
End Sub
Note: In recording the macro I enlarged the size of the comment box (so
that it doesn't look like one long strip when pasting lengthy text), I
selected username and used cmd-B to undo bold type. The latter doesn't
seem to have been logged/recorded in the macro.
Any help appreciated. Regards, David