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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Startup Form 1

Status
Not open for further replies.

drkestrel

MIS
Sep 25, 2000
439
GB
I have created a form in Excel VBA within an Excel Workbook test.xls. How could I set test.xls such that the form I created frmTest get displayed automatically when test.xls is opened?

 
Place this bit of code in the ThisWorkbook Code screen in VB editor.

Private Sub Workbook_Open()
FrmTest.Show
End Sub
 
or even:

Sub auto_open()
frmtest.show
end sub

in any seperate module you choose....

K.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top