JazzSP8
Well-known Member
- Joined
- Sep 30, 2005
- Messages
- 1,233
- Office Version
- 365
- Platform
- Windows
Hi All
Scratching my head a bit with this one.
I've code that loops through some cells and look for a certain sequence of letters and numbers and if found, copies it.
The sequence used to just appear as the first 7 characters so I could just check for it there, however a recent change to another system has made it so it can appear seemingly anywhere.
The code already works so it's literally just how to look for the sequence I'm struggling with. In an ideal world I'd be able to do this;
But this isn't an ideal world
Any help?
Scratching my head a bit with this one.
I've code that loops through some cells and look for a certain sequence of letters and numbers and if found, copies it.
The sequence used to just appear as the first 7 characters so I could just check for it there, however a recent change to another system has made it so it can appear seemingly anywhere.
The code already works so it's literally just how to look for the sequence I'm struggling with. In an ideal world I'd be able to do this;
Code:
If InStr(Cells(i, "A").Value, Like "[A-Z][A-Z]#####") <> 0 Then
But this isn't an ideal world
Any help?