hidden comments boxes

S

Shawn

I get excel files sent to me. Some have comments that are visable and some
have them that are hidden. I need a code that will leave visable comments
visable and unhide any hidden comments boxes.
 
R

Ryan H

This will scan thru each worksheet in the entire workbook and then find all
comments and make the visible. You could put this code in the workbook Open
Event or just put this code into a standard module and call it with a button.
Hope this helps! If so, let me know, click "YES" below.

Private Sub Workbook_Open()

Dim wks As Worksheet
Dim cmt As Comment

' scan each worksheet in a workbook
For Each wks In Worksheets

' scan each comment in the worksheet
For Each cmt In wks.Comments
cmt.Visible = True
Next cmt
Next wks

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top