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: 36
Default Alternate to ActiveWorkbook.Close

My application has two workbooks, one is a menu with a UserForm.
There are numerous controls in the UserForm where the user makes
selections. They click on a CommandButton which opens the second
workbook. Upon reviewing the information on the selected Worksheet
the user has an option of returning to the menu.

My problem occurs when the user goes back and forth between the menu
and the resulting report. The second workbook is large and takes alot
of time to open, and I think my problem is that when the user returns
to the menu it closes the second workbook, and thus requires it to be
re-opened after each time.

Is there some code I could use instead of ActiveWorkbook.Close to
'hide' the second workbook while the user returns to the menu to
change their selections?

Here is my code:

Sub ReOpenUF3()
Application.DisplayAlerts = False
ActiveWorkbook.Close

UF3.LB1.Visible = False
UF3.CB7.Visible = True
UF3.TB2.Visible = True
UF3.TB2.Value = Sheets("cover").Range("XOProd")
UF3.Show
End Sub

Thank you for any help
 
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
In Before Close Sub ActiveWorkBook.Close(False) repeat procedure [email protected] Excel Programming 5 September 26th 06 03:11 PM
ActiveWorkbook.Close True Sige Excel Programming 6 March 22nd 06 08:59 AM
ActiveWorkbook.Close dallas Excel Programming 0 November 3rd 04 06:27 PM
ActiveWorkbook.Close dallas Excel Programming 2 November 3rd 04 05:56 PM
ActiveWorkbook.Close Matthew[_9_] Excel Programming 4 November 13th 03 02:48 AM


All times are GMT +1. The time now is 05:44 PM.

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"