ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Convert From Comment to Cell Content (https://www.excelbanter.com/excel-discussion-misc-queries/259362-convert-comment-cell-content.html)

Sue

Convert From Comment to Cell Content
 
My admin put data into comments instead of a seperate column. How can I
move/copy/convert that data from a comment to the contents of a cell?

Jacob Skaria

Convert From Comment to Cell Content
 
Try this UDF (User Defined function). From workbook launch VBE using Alt+F11.
From menu Insert a Module and paste the below function.Close and get back to
workbook and try the below formula.

=GetComments(A1)

Function GetComments(rngTemp As Range)
If Not rngTemp.Comment Is Nothing Then
GetComments = rngTemp.Comment.Text
End If
End Function

The formula wil have to be recalculated when you change the comments;

--
Jacob


"Sue" wrote:

My admin put data into comments instead of a seperate column. How can I
move/copy/convert that data from a comment to the contents of a cell?



All times are GMT +1. The time now is 03:23 PM.

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