Hi experts!
I have a problem with trying to write a VBA code...have tried creating & looked around the web and have so far failed miserably with this.
I am trying delete rows NOT starting with three letters - specifically HKG, BJS and SYD.
The table looks like the below with the data being in column A and starting in cell A2 (end is changeable as this data gets updated).
The start will always begin with these above three characters and I am only wanting rows with these beginnings in my table i.e. not having LAXEXJPL and LONEXJTY as per example below. The letters after BJS, HKG & SYD will change, hence needing a code for just beginning with these letters.
I have tried various things (annoying that autofilter "begins with" can only use two criteria!) but can't seem to do this......can anyone help please?
(FYI this is part of a bigger macro so needing VBA to make my dreams come true)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BJSCGOOL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LAXEXJPL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HKGCGOPT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SYDCOMLV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LONEXJTY[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance!
I have a problem with trying to write a VBA code...have tried creating & looked around the web and have so far failed miserably with this.
I am trying delete rows NOT starting with three letters - specifically HKG, BJS and SYD.
The table looks like the below with the data being in column A and starting in cell A2 (end is changeable as this data gets updated).
The start will always begin with these above three characters and I am only wanting rows with these beginnings in my table i.e. not having LAXEXJPL and LONEXJTY as per example below. The letters after BJS, HKG & SYD will change, hence needing a code for just beginning with these letters.
I have tried various things (annoying that autofilter "begins with" can only use two criteria!) but can't seem to do this......can anyone help please?
(FYI this is part of a bigger macro so needing VBA to make my dreams come true)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BJSCGOOL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LAXEXJPL[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HKGCGOPT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SYDCOMLV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LONEXJTY[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance!