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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -