Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Open

Status
Not open for further replies.

sanjna000

Programmer
Aug 1, 2003
132
GB
Hi There,
i need to open up the main form when i double click on my work book. The code i used is as follows:

Application.WindowState = xlMinimized
Frm_Main.Show

But the problem is once i double click on the work book the whole application is minimized including the form. Is there anyway that i can show the form in a normal window state?

Really need u r help!

Thanks,
Sanjna...
 
Could go the whole hog :-
Code:
Sub test()
    Application.Visible = False
    UserForm1.Show
    Unload UserForm1
    Application.Visible = True
End Sub


Regards
BrianB
Use CupOfCoffee to speed up all windows applications.
It is easy until you know how.
================================
 
Application.Visible = False
Hopefully the VBA code will NEVER raise any error ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top