Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default 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 *



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
in excel useing comments how do you add clip art to comments? dhouse New Users to Excel 2 July 18th 07 08:14 AM
deleting comments [email protected] Excel Discussion (Misc queries) 2 August 24th 06 07:09 PM
anchor comments to cell while inserting and deleting rows db55ford Excel Discussion (Misc queries) 1 June 17th 06 02:27 AM
Add comments without deleting. Paperback Writer Excel Discussion (Misc queries) 5 June 7th 06 06:06 PM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"