Hi,
First of all I am trying to replace a part of a string in a list of data
e.g.
EXP4200-1
EXP4200-2
EXP4200-5
EXP4200-25
EXP4000-2
EXP4000-3
EXP3080-12
EXP3080-105
EXP3080-106
...
I want to delete (or replace with "") the 'EXP####-' part of the string, however I dont know how to use the 'pattern matching' style characters such as
'[A-K]', '*', '#' in VBA.
my guess is
(If '#' means 'any number', but im not sure)
I also have another similar problem where i want to replace "#, " with "#/" so only 'comma space' s that come after numbers (NOT letters) are replaced by a forward slash.
e.g.
'Quick Turn 15, 18, 20, 200
8 Station, 8 Position
SQT 200, 250
12 Station, 12 Position'
changes to:
'Quick Turn 15/18/20/200
8 Station, 8 Position
SQT 200/250
12 Station, 12 Position'
Thanks in advance for any help
First of all I am trying to replace a part of a string in a list of data
e.g.
EXP4200-1
EXP4200-2
EXP4200-5
EXP4200-25
EXP4000-2
EXP4000-3
EXP3080-12
EXP3080-105
EXP3080-106
...
I want to delete (or replace with "") the 'EXP####-' part of the string, however I dont know how to use the 'pattern matching' style characters such as
'[A-K]', '*', '#' in VBA.
my guess is
Code:
Sheets(2).Columns("A").Replace What:= "EXP" & #### & "-", Replacement:= ""
I also have another similar problem where i want to replace "#, " with "#/" so only 'comma space' s that come after numbers (NOT letters) are replaced by a forward slash.
e.g.
'Quick Turn 15, 18, 20, 200
8 Station, 8 Position
SQT 200, 250
12 Station, 12 Position'
changes to:
'Quick Turn 15/18/20/200
8 Station, 8 Position
SQT 200/250
12 Station, 12 Position'
Thanks in advance for any help