#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Autofilter

Hi , I have a table with autofilter at the bottom (it is in the row 500 ) of
my sheet , excel does not let me to unhide rows in the top of my sheet when
the autofilter is activated , I am talking about the rows 1- 499 , it lets me
unhide rows only when the autofilter is unactivated (looks like excel bug),
so I am trying this :

ActiveWorkbook.Worksheets("Sheet1").AutoFilterMode = False

it sets unactivated the autofilter , after that I am hiding and showing the
rows that I need , but after that I need to activate again the autofilter , I
am trying :

ActiveWorkbook.Worksheets("Part Appl Guidelines").AutoFilterMode = true

but it does not work , it shows an error message, somebody can help me ?

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Autofilter

After of this :
ActiveWorkbook.Worksheets("Sheet1").AutoFilterMode = true

I am doing this :

ActiveWorkbook.Sheets("Sheet1").Range("F101").Auto Filter 2, "My criteria 1"

I am getting the error message in this line.


"Angeles" wrote:

Hi , I have a table with autofilter at the bottom (it is in the row 500 ) of
my sheet , excel does not let me to unhide rows in the top of my sheet when
the autofilter is activated , I am talking about the rows 1- 499 , it lets me
unhide rows only when the autofilter is unactivated (looks like excel bug),
so I am trying this :

ActiveWorkbook.Worksheets("Sheet1").AutoFilterMode = False

it sets unactivated the autofilter , after that I am hiding and showing the
rows that I need , but after that I need to activate again the autofilter , I
am trying :

ActiveWorkbook.Worksheets("Part Appl Guidelines").AutoFilterMode = true

but it does not work , it shows an error message, somebody can help me ?

Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
WHA WHA is offline
external usenet poster
 
Posts: 21
Default Autofilter

I think you can set a sheet's AutoFilterMode to False but not to True.
VBA needs to know exactly where the headers are. Some ideas:

Is there a gap between the top rows and the filter headers? I believe
there needs to be one completely empty row above the headers.

From your other post: the following line looks OK to me (I added
argument names for clarity):
ActiveWorkbook.Sheets("Sheet1").Range("F101").Auto Filter Field:=2,
Criteria1:="My criteria 1"

You might need to put the following line ABOVE that line:
ActiveWorkbook.Sheets("Sheet1").Range("F101").Auto Filter

Also: Are you sure of what the headers are in the region that has
autofilter on it? "Field:=2" is correct only if you're filtering on
the second header from the left.

fyi: I figured out the above by recording a macro then looking at the
produced code. good luck

WHA

On Nov 30, 8:27 am, Angeles wrote:
Hi , I have a table with autofilter at the bottom (it is in the row 500 ) of
my sheet , excel does not let me to unhide rows in the top of my sheet when
the autofilter is activated , I am talking about the rows 1- 499 , it lets me
unhide rows only when the autofilter is unactivated (looks like excel bug),
so I am trying this :

ActiveWorkbook.Worksheets("Sheet1").AutoFilterMode = False

it sets unactivated the autofilter , after that I am hiding and showing the
rows that I need , but after that I need to activate again the autofilter , I
am trying :

ActiveWorkbook.Worksheets("Part Appl Guidelines").AutoFilterMode = true

but it does not work , it shows an error message, somebody can help me ?

Thank you in advance.


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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
How to Sort within AutoFilter with Protection on (and AutoFilter . giblon Excel Discussion (Misc queries) 1 February 16th 06 12:23 PM


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

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"