#1   Report Post  
Pat
 
Posts: n/a
Default ShowAllData

When a macro runs and it performs a filter/showall request the code stops on
the line:

ActiveSheet.ShowAllData

What needs to be changed so that this request is always performed regardless
if the sheet is not currently filtered.

Thanks if you can help.
Pat


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If

Pat wrote:

When a macro runs and it performs a filter/showall request the code stops on
the line:

ActiveSheet.ShowAllData

What needs to be changed so that this request is always performed regardless
if the sheet is not currently filtered.

Thanks if you can help.
Pat


--

Dave Peterson
  #3   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Pat

maybe just use:

Selection.AutoFilter

as a toggle

Regards

Trevor


"Pat" wrote in message
...
When a macro runs and it performs a filter/showall request the code stops
on the line:

ActiveSheet.ShowAllData

What needs to be changed so that this request is always performed
regardless if the sheet is not currently filtered.

Thanks if you can help.
Pat



  #4   Report Post  
Pat
 
Posts: n/a
Default

Thank you gentlemen for your help. I found Dave's solution best suited for
this task.

Cheers
Pat
"Trevor Shuttleworth" wrote in message
...
Pat

maybe just use:

Selection.AutoFilter

as a toggle

Regards

Trevor


"Pat" wrote in message
...
When a macro runs and it performs a filter/showall request the code stops
on the line:

ActiveSheet.ShowAllData

What needs to be changed so that this request is always performed
regardless if the sheet is not currently filtered.

Thanks if you can help.
Pat





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



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