Macro - Predefine column ID

[Closed]
Report
Posts
2
Registration date
Wednesday October 17, 2012
Status
Member
Last seen
October 31, 2012
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
Hi There,

in order to add more flexiblity, I want to predefine the column criteria/search column ID at frontend ie in excel sheet and use it at backend (macro) in the below code instead of "B" and "C"

filterCriteria = Thiswb.Sheets(1).Range("B" & CStr(LSearchRow)).Value & Thiswb.Sheets(1).Range("C" & CStr(LSearchRow)).Value

Any suggestion pls?

1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
where you want to pre define?

You would do same way as you are doing for row