vba - Fetch the last value of a range of cells -
i (dynamically) fetch last value of range. therefore have following code.
range("c13").select range(selection, selection.end(xldown)).select x1 = selection.end(xldown).select msgbox (x1)
this gives true in stead of looking (the actual value of cell). thoughts on should value?
replace lines one:
msgbox cells(rows.count,3).end(xlup).value
it return value of last cell in column c has value.
Comments
Post a Comment