Help: Filter rows that contain text that starts with the same string

kotzo

Board Regular
Joined
Aug 1, 2010
Messages
119
Hi I'm using the following code to filter specific rows:

Code:
   ActiveSheet.Range("$A$1:$L$100000").AutoFilter Field:=1, Criteria1:=a

the variable a should be every string value in column A that starts with the string "Description". The rest of the string differs from row to row.

e.g.

Description Temperature sensor TC600 FeKost 8x50mm
Description Lower section

How can I define variable a in order to show only the rows that
start with the string "Description" ?


Regards,

Kotzo
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi, I don't think you can do this exactly, but there is an approach you can take that allows something very similar

See my previous posts both here and here, that describe a tool where you enter any search term, and the autofilter shows only data that matches part or all of that term
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,704
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top