ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Comments (https://www.excelbanter.com/excel-programming/382553-comments.html)

Corey

Comments
 
Is it possible to insert a Comment into a Cell like :

=Sheet2!B2

and Display the value of that refernce in the comments box??

Vlado Sveda

Comments
 
Hi Corey,

use something like this:

- insert comment:
MyWorkbook.MyWorksheet.Cells(MyRow, MyColumn).AddComment

- write comment content
MyWorkbook.MyWorksheet.Cells(MyRow, MyColumn).Comment.Text Text:=
"MyText"

- read comment content
MyString = MyWorkbook.MyWorksheet.Cells(MyRow, MyColumn).Comment.Text

Vlado


"Corey" wrote:

Is it possible to insert a Comment into a Cell like :

=Sheet2!B2

and Display the value of that refernce in the comments box??



All times are GMT +1. The time now is 09:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com