Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default is there a way of saving a filter?

If I have my speadsheet filtered (several differernt filters applied, or
some other complex filter) and I need to jump out of filtered mode, is the a
way I can "save" the filter to something like a varible or something,
unfilter, do what I need to, and then reset the filter to what it was? these
are not filters I would ness want to save to a macro, as they might be
unique for a given task, but I would like to reset the filter to what I had
before so that I could finish processing what I was doing....

TIA
Bruce


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default is there a way of saving a filter?

Bruce,

Look at the filters collection, autofilter object. Something like

MsgBox ActiveSheet.AutoFilter.Filters(2).Criteria1

This will return the criteria of a filter applied to the second field of the
autofilter.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"BruceJ" wrote in message
news:kNglb.846561$uu5.150164@sccrnsc04...
If I have my speadsheet filtered (several differernt filters applied, or
some other complex filter) and I need to jump out of filtered mode, is the

a
way I can "save" the filter to something like a varible or something,
unfilter, do what I need to, and then reset the filter to what it was?

these
are not filters I would ness want to save to a macro, as they might be
unique for a given task, but I would like to reset the filter to what I

had
before so that I could finish processing what I was doing....

TIA
Bruce




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default is there a way of saving a filter?

You can create a Custom View with the filtered rows:

1. Filter the table
2. Choose ViewCustom Views
3. Click Add
4. Type a name for the Custom View
5. Check the box for 'Hidden rows, columns and filter settings'
6. Click OK

To apply the view later, choose ViewCustom Views, select the view, click OK

BruceJ wrote:
If I have my speadsheet filtered (several differernt filters applied, or
some other complex filter) and I need to jump out of filtered mode, is the a
way I can "save" the filter to something like a varible or something,
unfilter, do what I need to, and then reset the filter to what it was? these
are not filters I would ness want to save to a macro, as they might be
unique for a given task, but I would like to reset the filter to what I had
before so that I could finish processing what I was doing....

TIA
Bruce




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default is there a way of saving a filter?

Question on this feature...

Example Data:
A B C
1 CA A
2 CA B
3 FL C
4 WA D
5 TX E

If I have a filter and I save ti to State_CA it would show me rows 1 and 2.
Now if I then Change row 4 to CA, would it show me 1,2 and 4, or still only
1 and 2?

Thanks
Bruce







"Debra Dalgleish" wrote in message
...
You can create a Custom View with the filtered rows:

1. Filter the table
2. Choose ViewCustom Views
3. Click Add
4. Type a name for the Custom View
5. Check the box for 'Hidden rows, columns and filter settings'
6. Click OK

To apply the view later, choose ViewCustom Views, select the view, click

OK

BruceJ wrote:
If I have my speadsheet filtered (several differernt filters applied, or
some other complex filter) and I need to jump out of filtered mode, is

the a
way I can "save" the filter to something like a varible or something,
unfilter, do what I need to, and then reset the filter to what it was?

these
are not filters I would ness want to save to a macro, as they might be
unique for a given task, but I would like to reset the filter to what I

had
before so that I could finish processing what I was doing....

TIA
Bruce




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default is there a way of saving a filter?

You can test it in your workbook, but all qualifying rows should be
displayed when you show a saved view. In your example, row 4 would be
included, as it now meets the criteria.

BruceJ wrote:
Question on this feature...

Example Data:
A B C
1 CA A
2 CA B
3 FL C
4 WA D
5 TX E

If I have a filter and I save ti to State_CA it would show me rows 1 and 2.
Now if I then Change row 4 to CA, would it show me 1,2 and 4, or still only
1 and 2?

"Debra Dalgleish" wrote in message
...

You can create a Custom View with the filtered rows:

1. Filter the table
2. Choose ViewCustom Views
3. Click Add
4. Type a name for the Custom View
5. Check the box for 'Hidden rows, columns and filter settings'
6. Click OK

To apply the view later, choose ViewCustom Views, select the view, click


OK

BruceJ wrote:

If I have my speadsheet filtered (several differernt filters applied, or
some other complex filter) and I need to jump out of filtered mode, is


the a

way I can "save" the filter to something like a varible or something,
unfilter, do what I need to, and then reset the filter to what it was?


these

are not filters I would ness want to save to a macro, as they might be
unique for a given task, but I would like to reset the filter to what I


had

before so that I could finish processing what I was doing....

TIA
Bruce




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html






--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
Filter PivotTable dropdown items to match report filter Catherine D Excel Discussion (Misc queries) 1 August 16th 08 12:12 AM
saving autofiltercustom filter settings Edwin199976 Excel Worksheet Functions 2 December 13th 06 06:52 PM
Saving a filter? rik84 Excel Discussion (Misc queries) 2 May 13th 05 12:01 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 01:16 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"