Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default FYI Excel 2007: Saving a xlsm file with a hidden worksheet activated makes worksheet visible

I have an Excel application that copies data from one file into hidden
worksheets in 2 other files. When I updated to Excel 2007, one of the
hidden worksheets kept appearing after I ran the data copy procedure
and reopened the target file.

The only difference between this reappearing worksheet and the other 9
hidden sheets was the fact that the code left the reappearing
worksheet active. (I set Excel's screenupdating=false while opening
the target files, moving all the data, and then closing/saving the
target files.) In 2003, Excel would not change the worksheet's visible
property, even though the worksheet had been activated while
screenupdating was set to "false".

I added one line of code, which set one of the visible worksheets
active before saving the file. Once again the hidden sheets remain
hidden, all of them.

Hope this is informative.
THANKS!
David G.
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
Trouble saving xlsm worbook in Excel 2007 Xavier[_6_] Excel Programming 0 October 24th 07 08:30 AM
Excel 2007 xlsm and worksheet links not updatings MochaTrpl Excel Discussion (Misc queries) 0 October 9th 07 06:52 PM
If a certain cell has a certain value, a certain worksheet is hidden or visible Matt[_40_] Excel Programming 3 February 9th 07 06:49 AM
Worksheet has to set to visible as it is not visible after saving and closing Excel by VB. Oscar Excel Programming 6 June 21st 05 10:39 PM
Saving hidden data with a worksheet (preferably without using a hidden sheet) Dick Kusleika[_3_] Excel Programming 2 January 21st 04 04:39 PM


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