Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default ActiveSheet.ShowAllData shows everything - way to have hidden _not_ show up?

The syntax below is fantastic. It "unfilters" everything. I added part of
the code to 4 printing scripts so that after printing, the records would all
be shown. Like I said, it works very well for filtered records.

---------------------------------------------------------
Sub ShowAllData()
'
'
On Error Resume Next
ActiveSheet.ShowAllData
If Err.Number < 0 Then MsgBox "All the data is being displayed."
On Error GoTo 0

End Sub
---------------------------------------------------------

What I just noticed is that as we now have a number of closed records that
no longer need tracking, I hid those rows from the ones still in progress.
So we no longer need rows that are hidden to be revealed. The code above
does not distinguish between hidden or hidden due to filtering.

I'm guessing there might not be a way around that but figured I won't know
till I ask.

Ultimately, we need to unhide rows that have been filtered but not that have
actually been hidden.

Is there a way to programmatically have Excel distinguish between the two?

Thank you.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default ActiveSheet.ShowAllData shows everything - way to have hidden _not_show up?

Not that I know.

But maybe you could add a helper column and use that as a flag.

Then .showalldata and come back and filter on that flag column to hide the flag.

This may be a better way to keep track/count stuff, too. (Especially if someone
unhides things by mistake.)

StargateFanFromWork wrote:

The syntax below is fantastic. It "unfilters" everything. I added part of
the code to 4 printing scripts so that after printing, the records would all
be shown. Like I said, it works very well for filtered records.

---------------------------------------------------------
Sub ShowAllData()
'
'
On Error Resume Next
ActiveSheet.ShowAllData
If Err.Number < 0 Then MsgBox "All the data is being displayed."
On Error GoTo 0

End Sub
---------------------------------------------------------

What I just noticed is that as we now have a number of closed records that
no longer need tracking, I hid those rows from the ones still in progress.
So we no longer need rows that are hidden to be revealed. The code above
does not distinguish between hidden or hidden due to filtering.

I'm guessing there might not be a way around that but figured I won't know
till I ask.

Ultimately, we need to unhide rows that have been filtered but not that have
actually been hidden.

Is there a way to programmatically have Excel distinguish between the two?

Thank you.


--

Dave Peterson

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
Date format shows on formula bar, 5 digit numbers show in row CaroleO Excel Discussion (Misc queries) 1 March 5th 07 08:11 PM
function details show value, but display shows #n/a mike Excel Discussion (Misc queries) 2 March 12th 06 11:17 PM
ShowAllData Pat Excel Discussion (Misc queries) 3 April 14th 05 10:08 PM
Why does the formula result show a number but the screen shows ze. Jam-Du Excel Worksheet Functions 2 November 12th 04 09:07 PM
vba-showalldata chick-racer[_45_] Excel Programming 7 December 5th 03 09:00 PM


All times are GMT +1. The time now is 01:52 PM.

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"