Good day all,
I am trying to read comments from the an worksheet in VBA. I had it working but I changed something and can't figure out why both lines below fail..any ideas?
If wsR.Cells(rR, rC).Comment.Text <> "" Then
and
wsW.Cells(rw, 3) = wsR.Cells(rR, rC).Comment.Text
The code below works, so all of the variables are set properly
"wsW.Cells(rw, 2) = wsR.Cells(rR, rC)"
error is "Object variable or with block variable not set")
Thank you!
Kavy
I am trying to read comments from the an worksheet in VBA. I had it working but I changed something and can't figure out why both lines below fail..any ideas?
If wsR.Cells(rR, rC).Comment.Text <> "" Then
and
wsW.Cells(rw, 3) = wsR.Cells(rR, rC).Comment.Text
The code below works, so all of the variables are set properly
"wsW.Cells(rw, 2) = wsR.Cells(rR, rC)"
error is "Object variable or with block variable not set")
Thank you!
Kavy