Code for opening Comment box

  • Thread starter Thread starter chris46521
  • Start date Start date
C

chris46521

Hello,

Does anyone know what code would automatically bring up a comment bo
when the word "JOINT" is typed in that cell? I already have the I
statement, but I don't know the code to open a comment box.

Thanks, Chir
 
MyRange.AddComment
MyRange.Comment.Visible = False 'Or True
MyRange.Comment.Text Text:="your comment here."

Where MyRange is the range of your cell.

Mike
 
Thanks Mike! That works great. Do you know if there is a way to have the
comment box open up with the cursor flashing after some bold text? I
would also like the box close again after the user has finished
inputting the data.

Thanks!

Chris
 
Chris,

Not sure about the bold text, but this will create a comment, make it
visible, add some text, and then leave it open for the use to make additions
to the text.

MyRange.AddComment
MyRange.Comment.Visible = True
MyRange.Comment.Text Text:="your text" & Chr(10)
MyRange.Comment.Shape.Select True

Mike
 
Perfect! Thanks!
Chris,

Not sure about the bold text, but this will create a comment, make it
visible, add some text, and then leave it open for the use to mak
additions
to the text.

MyRange.AddComment
MyRange.Comment.Visible = True
MyRange.Comment.Text Text:="your text" & Chr(10)
MyRange.Comment.Shape.Select True

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top