Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Comments in cell
Hi
Is it possible to extract the comments from a cell and copy to another cell using a formula?? eg cell a1 has a comment, need extract comment from A1 and place comment directly in cell a2 as text. Regards Norman -- Message posted via http://www.officekb.com |
#2
|
|||
|
|||
You could use a User Defined Function:
Public Function GetComment(Target As Excel.Range) As String On Error Resume Next GetComment = Target(1).Comment.Text On Error GoTo 0 End Function Use as A2: =GetComment(A1) If you're not familiar with UDFs see http://www.mvps.org/dmcritchie/excel/getstarted.htm In article <554ac8b1fd4a4@uwe, "Norman K via OfficeKB.com" <u6479@uwe wrote: Hi Is it possible to extract the comments from a cell and copy to another cell using a formula?? eg cell a1 has a comment, need extract comment from A1 and place comment directly in cell a2 as text. Regards Norman |
#3
|
|||
|
|||
Thanks !!! JE
JE McGimpsey wrote: You could use a User Defined Function: Public Function GetComment(Target As Excel.Range) As String On Error Resume Next GetComment = Target(1).Comment.Text On Error GoTo 0 End Function Use as A2: =GetComment(A1) If you're not familiar with UDFs see http://www.mvps.org/dmcritchie/excel/getstarted.htm Hi [quoted text clipped - 9 lines] Norman -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell color based upon cell value | Excel Discussion (Misc queries) | |||
Can I reference comments by Cell Name? | Excel Discussion (Misc queries) | |||
cell comments | Excel Worksheet Functions | |||
Making comments apply to more than one cell | Excel Discussion (Misc queries) | |||
Can you conditional format based on information in cell comments? | Excel Worksheet Functions |