Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Removing filters from data

Hi.

I have recorded a macro to remove filters from data lasts in advance of
performing other actions.

However if the data is unfiltered the macro falls over with the message
Run time error '1004' ShowAllData method of Worksheet class failed.

I think I need some sort of if error continue code or something to check
filtering
first.

I would be grateful if someone could point me in the right direction please.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Removing filters from data

Hi Philip

Try

If Activesheet.Filtermode Then ActiveSheet.ShowAllData

--
Jacob


"Philip J Smith" wrote:

Hi.

I have recorded a macro to remove filters from data lasts in advance of
performing other actions.

However if the data is unfiltered the macro falls over with the message
Run time error '1004' ShowAllData method of Worksheet class failed.

I think I need some sort of if error continue code or something to check
filtering
first.

I would be grateful if someone could point me in the right direction please.

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
Pivot Table filters, especially DATE filters chris Excel Worksheet Functions 0 August 27th 08 04:33 AM
Programmatically removing data filters PatK Excel Programming 12 August 14th 08 12:09 AM
data filters cs2001 Excel Discussion (Misc queries) 1 May 4th 07 02:36 AM
Data Filters Crissyb Excel Discussion (Misc queries) 1 February 28th 06 12:33 AM
Filters, Subtotal & Intacted Results after the filters' Removal kasiopi Excel Discussion (Misc queries) 5 February 24th 06 12:18 PM


All times are GMT +1. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"