I am using Excel 2010. I have tried using the code:
Num_Col = Cells(1, 1).End(x1ToLeft).Column
to count the number of columns that have data and keep getting an error. Is this code incorrect? If so can anyone please help me out to count the number of columns being used.
Thanks
Num_Col = Cells(1, 1).End(x1ToLeft).Column
to count the number of columns that have data and keep getting an error. Is this code incorrect? If so can anyone please help me out to count the number of columns being used.
Thanks