Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default autofilter using macro

Hello friends... I would be very happy if anyone could help me in
this...

I want to write a macro to autofilter a particular column the input
given will be some string the output i should get is all the entries
containing that string in that particular column.

I have used the below line for autofilter, but the problem is the
crieteria it takes is "equal", i want to put the critieria as "content"
which means i should get all the entries CONTAINING the particular
entry.

Selection.AutoFilter Field:=1, Criteria1:="customer"

any inputs??????

Thanks!!!!!!!!
Anil



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default autofilter using macro

Anil,

Try

Selection.AutoFilter Field:=1, Criteria1:="*customer*"


* is a wild card that matches any sequence of characters, including none.

--

John Green - Excel MVP
Sydney
Australia


"kkanil" wrote in message ...
Hello friends... I would be very happy if anyone could help me in
this...

I want to write a macro to autofilter a particular column the input
given will be some string the output i should get is all the entries
containing that string in that particular column.

I have used the below line for autofilter, but the problem is the
crieteria it takes is "equal", i want to put the critieria as "content"
which means i should get all the entries CONTAINING the particular
entry.

Selection.AutoFilter Field:=1, Criteria1:="customer"

any inputs??????

Thanks!!!!!!!!
Anil



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoFilter Macro carl Excel Worksheet Functions 1 August 20th 07 08:34 PM
Autofilter from macro Brettjg Excel Discussion (Misc queries) 2 June 8th 07 01:45 PM
Macro using autofilter Lorna B Excel Discussion (Misc queries) 5 May 25th 07 06:54 PM
Keep autofilter after macro is run gmr7 Excel Worksheet Functions 2 July 5th 05 01:16 PM
Autofilter Macro Help RonB Excel Discussion (Misc queries) 1 December 30th 04 01:34 AM


All times are GMT +1. The time now is 04:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"