Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

how to close a hidden spreadsheet?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sabine - 25 Jan 2006 09:06 GMT
I want to close the opened but not visible/hidden excelfile "macros.xls"
without saving when I will close the spreadsheet 'main.xls', leaving
"macros.xls' invisible so the next time it wil be opened it will still be
invisible. This hidden spreadsheet will not be the active sheet when the
macro will be performed.

Who can help me with a short code which I could put between the following
lines :

Private Sub Workbook_BeforeClose(Cancel As Boolean)

End Sub

Thank you in advance!

Sabine
Bob Phillips - 25 Jan 2006 09:25 GMT
I don't think you will be able to do what you want as visible is not a
workbook property, but a property of the window. As Windows is part of
application, it is not saved when Excel closes.

One way I can think of doing it is to hold a defined name in the nominated
workbook with its window state, set it on closing, and test that on opening.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

> I want to close the opened but not visible/hidden excelfile "macros.xls"
> without saving when I will close the spreadsheet 'main.xls', leaving
[quoted text clipped - 12 lines]
>
> Sabine
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.