LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Error unhiding in excel 97

I have a workbook with some hidden sheets, which the user selects to unhide
as required. I wanted to use a macro button to copy all pages except page 1
to a new workbook. I used the following code assigned to a button on page
one:

Private Sub CommandButton2_Click()

Sheets(Array("Sheet2", "Sheet 3", "Sheet4", "Sheet5", "Sheet6", _
"Sheet7", "Sheet8")).Copy

End Sub

It worked absolutely fine in my pc at home (excel 2000) and copied all pages
hidden or unhidden to a new workbook. However when I got to work and tried
it (on excel 97), I got a runtime error. It's as if I can't copy hidden
sheets. I tried selecting the sheets with a line of code prior to the copy
code above, but to no avail. I guess this functionality was only built into
excel 2000, but is there any way of achieving it in excel 97?
--
Thanks!
---------
Gareth
 
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
1004 Error when hiding/unhiding rows ianb Excel Discussion (Misc queries) 5 March 27th 08 08:42 AM
Unhiding Rows in Excel JMM Excel Worksheet Functions 4 May 11th 07 06:39 PM
Unhiding rows in Excel kthomas Excel Worksheet Functions 10 March 2nd 07 11:26 PM
Unhiding Columns in Error Big Andy D Excel Discussion (Misc queries) 4 August 4th 05 03:46 PM
Unhiding Rows: bug in Excel? Jos Vens Excel Programming 3 November 3rd 03 12:49 PM


All times are GMT +1. The time now is 03:47 AM.

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"