Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default ShowAllData in all workbooks and sheets

Hi

Code required to run ShowAllData on every sheet in every open workbook,
leaving filter buttons/arrows in place.

Something like:

With all Workbooks and all Sheets

If .FilterMode Then
.ShowAllData
End If
End With

TIA

--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default ShowAllData in all workbooks and sheets

Sub test()

Dim wb As Workbook
Dim sh As Worksheet

On Error Resume Next

For Each wb In Application.Workbooks
For Each sh In wb.Worksheets
sh.ShowAllData
Next
Next

On Error GoTo 0

End Sub


RBS

"Robert Christie" wrote in message
...
Hi

Code required to run ShowAllData on every sheet in every open workbook,
leaving filter buttons/arrows in place.

Something like:

With all Workbooks and all Sheets

If .FilterMode Then
.ShowAllData
End If
End With

TIA

--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default ShowAllData in all workbooks and sheets

Thanks RB

very much appreciated

Aussie Bob C.


"RB Smissaert" wrote:

Sub test()

Dim wb As Workbook
Dim sh As Worksheet

On Error Resume Next

For Each wb In Application.Workbooks
For Each sh In wb.Worksheets
sh.ShowAllData
Next
Next

On Error GoTo 0

End Sub


RBS

"Robert Christie" wrote in message
...
Hi

Code required to run ShowAllData on every sheet in every open workbook,
leaving filter buttons/arrows in place.

Something like:

With all Workbooks and all Sheets

If .FilterMode Then
.ShowAllData
End If
End With

TIA

--
Thank you

Regards
Aussie Bob C.
Using Windows XP Home + Office 2003 Pro



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
sheets in a workbooks kanwal Excel Discussion (Misc queries) 3 January 20th 07 03:24 AM
ShowAllData Pat Excel Discussion (Misc queries) 3 April 14th 05 10:08 PM
ActiveSheet.ShowAllData shows everything - way to have hidden _not_ show up? StargateFanFromWork Excel Programming 1 July 8th 04 04:33 AM
Naming Workbooks and Sheets Mike Excel Programming 2 February 20th 04 05:55 PM
vba-showalldata chick-racer[_45_] Excel Programming 7 December 5th 03 09:00 PM


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