.AddComment

  • Thread starter Thread starter Joe User
  • Start date Start date
J

Joe User

In VBA I set text to a cell and then add a comment. I then
add text to the comment. The result is the cell has the
comment with the text that is supposed to be. However the
cell itself now has the text that I put in the cell, not
the comment but it appends itself. Example the Cell was
set to have the text: test. but now it has:testtesttest
 
Hi Joe User,

Joe said:
In VBA I set text to a cell and then add a comment. I then
add text to the comment. The result is the cell has the
comment with the text that is supposed to be. However the
cell itself now has the text that I put in the cell, not
the comment but it appends itself. Example the Cell was
set to have the text: test. but now it has:testtesttest

I'm not sure what your code looks like, but something like this should work:

With Sheet1.Range("A1")
.Value = "celltext"
.AddComment "commenttext"
End With

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 

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