Macro - Predefine column ID

Closed
samkhu Posts 2 Registration date Wednesday October 17, 2012 Status Member Last seen October 31, 2012 - Oct 17, 2012 at 09:05 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Oct 17, 2012 at 05:55 PM
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 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Oct 17, 2012 at 05:55 PM
where you want to pre define?

You would do same way as you are doing for row
0