How to find cell value based on row and Column ID in excel VBA -
need vba sub find cell value based on row , column id. in example below need select value east , rt3 intersect 80.
b c d e 1 null rt1 rt2 rt3 rt4 2 north 31 40 78 11 3 south 32 41 79 12 4 east 33 42 80 13 5 west 34 43 81 14
use similar below not tested:
function getcell(ct string, rt string) range activecell r = .columns("a").find(rt).row c = .rows("1").find(ct).column 'the below escape function if none found if r = nothing or c = nothing exit function set getcell = .cells(r, c) end end function
Comments
Post a Comment