ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   have to change all the comments in the sheet simultaneously (https://www.excelbanter.com/excel-discussion-misc-queries/87551-have-change-all-comments-sheet-simultaneously.html)

Husain

have to change all the comments in the sheet simultaneously
 
I have to change all the comments in a sheet in one go , not one by one

Chip Pearson

have to change all the comments in the sheet simultaneously
 
You need a VBA procedure to do this:

Sub AAA()
Dim Rng As Range
For Each Rng In
ActiveSheet.UsedRange.SpecialCells(xlCellTypeComme nts)
Rng.Comment.Text Text:="This is new text"
Next Rng
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Husain" wrote in message
...
I have to change all the comments in a sheet in one go , not
one by one





All times are GMT +1. The time now is 05:22 PM.

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