M
Monika
I am finding the lastcell of a sheet through:
tcrLastCell = Cells(Rows.Count, "A").End(xlUp).Row
I forming a range using this last cell somewhere in my
code for doing a vlookup:
c2 = Cells(tcrLastCell, rng6.Column).Address 'ENDING RANGE
This is using the 1st column. Somehow my end-user had to
insert a column "A" in the same sheet. This had some
information in the beginning rows. Now my tcrLastCell
returns 5 and my code fails. Working on excel is so
volatile. The code fails so promptly...is there a smart
way to handle such a case.
many thanks
tcrLastCell = Cells(Rows.Count, "A").End(xlUp).Row
I forming a range using this last cell somewhere in my
code for doing a vlookup:
c2 = Cells(tcrLastCell, rng6.Column).Address 'ENDING RANGE
This is using the 1st column. Somehow my end-user had to
insert a column "A" in the same sheet. This had some
information in the beginning rows. Now my tcrLastCell
returns 5 and my code fails. Working on excel is so
volatile. The code fails so promptly...is there a smart
way to handle such a case.
many thanks