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 Open UserForm

I have an application consisting of a report menu and the
corresponding templates the menu points to.

The menu is a UserForm (UF1) and resides on a separate workbook
(Wkbk1). When the user opens Wkbk1 it automatically opens UF1. The
user then selects a report template from one of 4 OptionButtons. The
resulting template (example; Rpt1.xls) opens up. The user can exit
this report by clicking on the Exit button (triggers the ExitApp macro
which closes the activewindow).

My problem is when I click on the Exit button it closes the
application OK, but instead of opening the menu (UF1) it simply opens
the sole empty worksheet in Wkbk1. I want this to automatically open
the UF1 instead of displaying the empty worksheet.

I tried entering the following code onto the worksheet in the VBE
under the VBA Project
Private Sub Workbook_Open()
Load UF1
UF1.Show
End Sub

But no luck

Can this be done? If so I need help understaning the correct code to
do this.

Thank you,
 
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
How do you make a userform open automatically when you open excel? Evan Excel Worksheet Functions 1 March 11th 10 02:24 AM
Open Userform two ways Ray Excel Programming 3 October 2nd 09 04:28 PM
Open UserForm JB Excel Programming 0 September 21st 09 12:25 AM
Open Outlook from userform mtm4300 via OfficeKB.com Excel Programming 0 June 28th 06 07:01 PM
Macro Won't Open up Userform PokerZan[_2_] Excel Programming 6 October 19th 05 06:46 PM


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