Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MarkM
 
Posts: n/a
Default linking comments to appear in cell at same time

Is it possible to have comments for cells, appear in a seperate cells or
worksheet as data as they are added like link function ?
  #2   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

I have tried in some other work a code similar to the following code in vba

Range("d2") = Range("a1").Comment.Text

but I am not aware whether it can be linked. perhaps a event code with
sheet_change can be attempted.


MarkM wrote in message
...
Is it possible to have comments for cells, appear in a seperate cells or
worksheet as data as they are added like link function ?



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Saved from a previous post:

You can retrieve the text from a comment with a userdefined function like:

Option Explicit
Function GetComment(FCell As Range) As Variant
Application.Volatile

Set FCell = FCell(1)

If FCell.Comment Is Nothing Then
GetComment = ""
Else
GetComment = FCell.Comment.Text
End If

End Function

Then you can use it like any other function:

=getcomment(a1)

But be aware that the function won't evaluate when you just change the comment.
It'll be correct when excel recalculates. (Hit F9 to force a recalc.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

MarkM wrote:

Is it possible to have comments for cells, appear in a seperate cells or
worksheet as data as they are added like link function ?


--

Dave Peterson
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
how do i type a time into a cell formatted for time? Armadillo Excel Discussion (Misc queries) 4 June 16th 05 11:32 PM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
enter a time into a cell, have the cell show two times the entry johnp Excel Worksheet Functions 3 May 2nd 05 12:08 AM
Can I create a cell that will count by one every time I print the. Tyler Hopfner Excel Worksheet Functions 1 February 7th 05 06:10 PM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM


All times are GMT +1. The time now is 02:20 PM.

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

About Us

"It's about Microsoft Excel"