Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

searching for comments in just one column 1

Status
Not open for further replies.

Luis939

MIS
Feb 28, 2003
453
US
vb doesnt seem to allow me to search for comments in individual columns, only on the entire worksheet
is there anyway where i can essentially write

for each cmt in [A:A].comments
...
next
 
Luis,
If you check the properties of a Comment, position is not one of them. But Parent give you the range object :)
Code:
    For Each com In Comments
        If com.Parent.Column = 3 Then
        'stuff to do wint comments in col C
        End If
    Next


Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
just one more thing, it seems to me that it traverses the comments by row, at least i think it looks that way when i said

msgbox comment.text

would there be a way to make it traverse by column instead, thanks!!
 
Comments is a Collection associated with a Sheet (hence, the Parent Property). There is no DIRECT association with rows and columns.

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top