I have data in four columns
Prob1: I need to have a reference of last row in column 3
Below can be used
lRow = .Cells(.Rows.Count, 3).End(xlUp).Row
But i would like to remove the hardcoding and use the value of header in column 3 i.e. "H3" in attached sheet.
Prob2: while setting a range i used columns while i would like to replace it by the header name. i.e. "H2" in attached sheet
Set rngData = .Range("B2:B" & lRow)
Could someone please help with above 2 referencings so that whereever in the table the two columns appear, it will still refer them correctly? Thanks in advance.
Bookmarks