Dr. Demento
Well-known Member
- Joined
- Nov 2, 2010
- Messages
- 618
- Office Version
- 2019
- 2016
- Platform
- Windows
I need to find the .address of the cell within a header (rngHeader) that contains either "DoB" or "Birth*" ([Birth* = Birth or Birthdate or Birthday] I'd like the seach/match to be case-insensitive, please).
This works fine but won't capture DoB:
but this doesn't (I tried both "&" and "or" separately)
I searched around but couldn't come up with anything that merged both multiple criteria and wildcards. Or, I may be totally spacing it (altogether possible).
Thanks, y'all.
This works fine but won't capture DoB:
Code:
rngDoB = WorksheetFunction.Match("BIRTH*", rngHeader, 0)
Code:
rngDoB = WorksheetFunction.Match("BIRTH*" &/or "DoB", rngHeader, 0)
Thanks, y'all.