Have written a macro to identify the last used row in a column:
sub_find_last_row()
dim last_row as integer
lastrow = range("B2"), range("B" & rows.count).end(xlup).row
end sub
I want to test if a row number was assigned to the variable so I open immediate window:
? Last_row
But no number is shown/calculated.
sub_find_last_row()
dim last_row as integer
lastrow = range("B2"), range("B" & rows.count).end(xlup).row
end sub
I want to test if a row number was assigned to the variable so I open immediate window:
? Last_row
But no number is shown/calculated.