R
Random
Slightly confused here. Can anyone help me with why these two
statements behave differently?
tRange = ActiveSheet.Range("A1:A10)
For each testcell in tRange ''--------------This one does not work
debug.print testcell.address ------Returns an Object Required
Next
For each testcell in ActiveSheet.Range("A1:A10")
debug.print testcell.address ------------Works fine
Next
I tried Declaring tRange as a Range at first, but that errored out as
well. Any suggestions or explanations would be most welcome.
Thanks for your expertise,
Random
statements behave differently?
tRange = ActiveSheet.Range("A1:A10)
For each testcell in tRange ''--------------This one does not work
debug.print testcell.address ------Returns an Object Required
Next
For each testcell in ActiveSheet.Range("A1:A10")
debug.print testcell.address ------------Works fine
Next
I tried Declaring tRange as a Range at first, but that errored out as
well. Any suggestions or explanations would be most welcome.
Thanks for your expertise,
Random