ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Converting Comments (https://www.excelbanter.com/excel-discussion-misc-queries/27849-converting-comments.html)

Sarah

Converting Comments
 
How do I convert comment text to a seperate column cell as text data?

bigwheel

"Sarah" wrote:

How do I convert comment text to a seperate column cell as text data?


Assuming you have a comment in cells A1 to A10 use this macro to copy the
comments into B1:B10

Sub CopyComments()
On Error Resume Next
For a = 1 To 10
Cells(a, 2) = Cells(a, 1).Comment.Text
Next a
End Sub


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

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