PC Review


Reply
Thread Tools Rate Thread

Autofilter run time error 400

 
 
Radon
Guest
Posts: n/a
 
      21st Mar 2009
Hello! When I run the code below, I can see the first row being selected and
the autofilter being turned on. However, I'm getting a run time error 400.
Any ideas?

'Set autofilter on
If Not oSheet.AutoFilterMode Then
oSheet.Rows("1:1").Select
Selection.AutoFilter = True
End If

Thanks!
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      21st Mar 2009
Dear Radon

'Selection.AutoFilter' is enough

If this post helps click Yes
---------------
Jacob Skaria


"Radon" wrote:

> Hello! When I run the code below, I can see the first row being selected and
> the autofilter being turned on. However, I'm getting a run time error 400.
> Any ideas?
>
> 'Set autofilter on
> If Not oSheet.AutoFilterMode Then
> oSheet.Rows("1:1").Select
> Selection.AutoFilter = True
> End If
>
> Thanks!

 
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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Microsoft Excel Misc 1 19th Apr 2010 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Microsoft Excel Misc 3 19th Apr 2010 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Microsoft Excel Misc 1 19th Apr 2010 05:53 PM
Autofilter rows and columns at the same time =?Utf-8?B?ZXhjZWwgZnJhbWVz?= Microsoft Excel Programming 0 9th Aug 2006 10:05 PM
An autofilter that can filter arrays of time Powerkor Microsoft Excel Worksheet Functions 1 8th Nov 2003 01:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 AM.