Hi
I am trying to write a simple code to count the number of columns in a range. However I am having an issue determining the range.
When I run this code, I get a "run-time error '1004."
I can't for the life of me figure out what i am doing wrong.
Please help.
Thanks
I am trying to write a simple code to count the number of columns in a range. However I am having an issue determining the range.
Code:
Range(Cells(RowCnt, COlcnt).End(xlToLeft).Select
When I run this code, I get a "run-time error '1004."
I can't for the life of me figure out what i am doing wrong.
Please help.
Thanks