svendiamond
Well-known Member
- Joined
- Jun 13, 2014
- Messages
- 1,504
- Office Version
- 365
- Platform
- Windows
Hey guys, how can I use Range.Autofilter to filter out a general alphanumeric code such as "A123" or "X029" (letter followed by three numbers)? I've been Googling and trying everything and I can't get it. The following will show me anything that begins with a letter... but that's as far as I've got:
Basically I have a list of terminal codes and sometimes they are incorrect. They should always be "A123" or "X987" so, if there is anything that isn't formatted like that, ("i.e. 'A12' or 'XYZA'") then I want autofilter to show me all the incorrect ones.
Thanks
Code:
Range("A1:J1").AutoFilter Field:=7, Criteria1:=">;"
Basically I have a list of terminal codes and sometimes they are incorrect. They should always be "A123" or "X987" so, if there is anything that isn't formatted like that, ("i.e. 'A12' or 'XYZA'") then I want autofilter to show me all the incorrect ones.
Thanks