Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reference to Comments

How can I create a reference (in cell A1) to comments I inserted in
cell A2? Or asking the question in a different way: Can I display the
comments from cell A2 in cell A1 by referring to the comments of cell
A2 (not the value in cell A2)?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default reference to Comments

Public Function ShowComments(rng as Range)
Application.Volatile
On error resume next
set cmt = rng(1).Comment
On Error goto 0
if not cmt is nothing then
ShowComments = cmt.Text
else
ShowComments = ""
end if
End Function

=showcomments(E5)

Won't update until there is a calculation.

--
Regards,
Tom Ogilvy


"Thomas Eggenschwiler" wrote in message
om...
How can I create a reference (in cell A1) to comments I inserted in
cell A2? Or asking the question in a different way: Can I display the
comments from cell A2 in cell A1 by referring to the comments of cell
A2 (not the value in cell A2)?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default reference to Comments

Thomas,
try this:
Read the comment from cell A2 by:
MyComment = split(range("a2").Comment.Text,":")(1)

Stick it in cell A1:
Range("a1") = Mycomment

The split statement will take off the Username that comes with the comment.

Ko Vijn

"Thomas Eggenschwiler" schreef in
bericht om...
How can I create a reference (in cell A1) to comments I inserted in
cell A2? Or asking the question in a different way: Can I display the
comments from cell A2 in cell A1 by referring to the comments of cell
A2 (not the value in cell A2)?
Thanks



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
Printing Comments & Cell Reference Jennifer L. Excel Discussion (Misc queries) 6 June 25th 08 11:38 PM
How do I reference the comments of a cell? BrotherSun Excel Discussion (Misc queries) 2 May 2nd 06 11:54 AM
Can I reference comments by Cell Name? flo1730 Excel Discussion (Misc queries) 5 June 15th 05 03:34 PM
how to print reference label name in excel for comments? Needhelp New Users to Excel 2 May 16th 05 09:09 PM


All times are GMT +1. The time now is 08:58 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"