Consulting

Results 1 to 3 of 3

Thread: Solved: Remove All Comments

  1. #1

    Solved: Remove All Comments

    Hi,

    i found interesting vba code here about tracking changes with comments.
    And before i deliver my files to my client i want to remove all comment from my workbook.
    can someone help me?

    many thanks...

    reza
    Last edited by reza_doang; 06-10-2010 at 12:41 AM.

  2. #2
    Quote Originally Posted by reza_doang
    Hi,

    i found interesting vba code here about tracking changes with comments.
    And before i deliver my files to my client i want to remove all comment from my workbook.
    can someone help me?

    many thanks...

    reza
    Try this code

    Sub DeleteCM()
    Dim sh As Worksheet, cm As Comment
    For Each sh In ActiveWorkbook.Worksheets
     For Each cm In sh.Comments
       cm.Delete
     Next
    Next
    End Sub

  3. #3
    fabulous...
    work greats and thanks for quick response

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •