#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default .AddComment

Hi Joe User,

Joe User wrote:
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]

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"