Need Comments list from Worksheet

  • Thread starter Thread starter kirkm
  • Start date Start date
K

kirkm

Hello - I'm after a list of all the comments and was given this

Sub newthing()
For i = 0 To Worksheets(1).Comments.Count
Debug.Print i, Worksheets(1).Comments(i).Parent, "###",
Worksheets(1).Comments(i).Text
Next
End Sub

A added 'Dim i' to it but all I could get was

Run-time error '9':
Subscript out of range

Any help appreciated.
Thanks - Kir
 

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

Back
Top