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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -