PC Review


Reply
Thread Tools Rate Thread

Auto Filters on/off

 
 
pgarcia
Guest
Posts: n/a
 
      14th Jan 2008
I have the following code: ActiveSheet.ShowAllData
what is the code to indicate if the auto filter is not on to keep running
the rest of the VB code?

thanks
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      14th Jan 2008
with Activesheet
if .filtermode then
.showalldata
end if
end with



pgarcia wrote:
>
> I have the following code: ActiveSheet.ShowAllData
> what is the code to indicate if the auto filter is not on to keep running
> the rest of the VB code?
>
> thanks


--

Dave Peterson
 
Reply With Quote
 
pgarcia
Guest
Posts: n/a
 
      14th Jan 2008
Never mind, just found what I was looking for.

With ActiveSheet
If .FilterMode Then
.ShowAllData
End If
End With

"pgarcia" wrote:

> I have the following code: ActiveSheet.ShowAllData
> what is the code to indicate if the auto filter is not on to keep running
> the rest of the VB code?
>
> thanks

 
Reply With Quote
 
pgarcia
Guest
Posts: n/a
 
      14th Jan 2008
Cool, thanks. I found a post that you wrote back in 2004 with that same code.
Thanks

"Dave Peterson" wrote:

> with Activesheet
> if .filtermode then
> .showalldata
> end if
> end with
>
>
>
> pgarcia wrote:
> >
> > I have the following code: ActiveSheet.ShowAllData
> > what is the code to indicate if the auto filter is not on to keep running
> > the rest of the VB code?
> >
> > thanks

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      14th Jan 2008
Some questions (and answers!) don't change <vbg>.

pgarcia wrote:
>
> Cool, thanks. I found a post that you wrote back in 2004 with that same code.
> Thanks
>
> "Dave Peterson" wrote:
>
> > with Activesheet
> > if .filtermode then
> > .showalldata
> > end if
> > end with
> >
> >
> >
> > pgarcia wrote:
> > >
> > > I have the following code: ActiveSheet.ShowAllData
> > > what is the code to indicate if the auto filter is not on to keep running
> > > the rest of the VB code?
> > >
> > > thanks

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use "OR" in two auto-filters/custom filters? Roady Microsoft Excel Misc 1 24th May 2010 06:11 PM
How can I auto-refresh auto-filters when data changes? =?Utf-8?B?TWlrZUBNUFdjbw==?= Microsoft Excel Worksheet Functions 0 4th Jul 2006 12:50 PM
auto filters =?Utf-8?B?Y2hhbmNleWdhcmRlbmVy?= Microsoft Excel Misc 5 27th Apr 2006 05:32 PM
Auto Filters Steved Microsoft Excel Misc 5 26th Apr 2004 09:18 PM
auto filters Dan Hylton Microsoft Excel Worksheet Functions 2 20th Aug 2003 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 PM.