Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default How to show 'Custom Auto Filter' dialog?

Hi all,

What l would like to do using VBA is show the 'Custom Auto Filter'
dialog and additionally set the
'Show rows whe' to 'begins with'

Once the form is showing with the default as above l want to exit the
macro and pass control to the user. They would then enter the 'begins
with' criteria click OK and the rows would be filtered accordingly.

Any help in coding this / pointing me in the right direction gretafully
appreciated.

Regards

Michael Beckinsale

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default How to show 'Custom Auto Filter' dialog?

I suspect you would be able to use the Application.Dialogs() function, but I
do not believe there is one for the filter selection drop down
Alternatively create your own userform and simulate the selection, then
apply this directly to the filter criteria settings.



--
Cheers
Nigel



"michael.beckinsale" wrote in message
oups.com...
Hi all,

What l would like to do using VBA is show the 'Custom Auto Filter'
dialog and additionally set the
'Show rows whe' to 'begins with'

Once the form is showing with the default as above l want to exit the
macro and pass control to the user. They would then enter the 'begins
with' criteria click OK and the rows would be filtered accordingly.

Any help in coding this / pointing me in the right direction gretafully
appreciated.

Regards

Michael Beckinsale



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default How to show 'Custom Auto Filter' dialog?


Nigel,

I considered the 'input box' method but l really wanted to give the
user more choice with the custom filter and didn't want to re-invent
the wheel by re-constructing the same thing via a userform.

The following code does pretty much what l want. The only downside l
can see is that the criteria box has a ? in it and takes the focus.

Application.ExecuteExcel4Macro "Filter?(1,""?*"")"

Regards

Michael Beckinsale

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
Auto filter custom filter stevefromnaki Excel Worksheet Functions 2 December 30th 09 06:23 AM
Auto show properties dialog box on save cba Setting up and Configuration of Excel 4 May 18th 09 08:31 AM
Auto show data but without using Auto Filter LP Excel Discussion (Misc queries) 1 April 8th 09 12:06 AM
Use the custom filter dialog in a macro KenInPortland Excel Worksheet Functions 3 August 16th 08 03:11 AM
Custom Auto Filter Vadhimoo Excel Programming 2 November 24th 06 10:45 AM


All times are GMT +1. The time now is 08:59 AM.

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

About Us

"It's about Microsoft Excel"