Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto filter custom filter | Excel Worksheet Functions | |||
Auto show properties dialog box on save | Setting up and Configuration of Excel | |||
Auto show data but without using Auto Filter | Excel Discussion (Misc queries) | |||
Use the custom filter dialog in a macro | Excel Worksheet Functions | |||
Custom Auto Filter | Excel Programming |