ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deleting comments (https://www.excelbanter.com/excel-programming/309771-re-deleting-comments.html)

Rob Bovey

Deleting comments
 
"Mark" wrote in message
...
I want some code which looks at a worksheet and deletes any comments

within
a range of say A7:G28


Hi Mark,

This should do it:

Range("A7:G28").ClearComments

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *




Jarek[_12_]

Deleting comments
 
Hi,
you can use following code

Sub delete_comments()
Dim cell As Range
On Error Resume Next
For Each cell In Range("A7:G28")
cell.Comment.Delete
Next cell
On Error GoTo 0
End Sub

Regards,
Jare

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 05:32 AM.

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