How do I automatically start (vba) form instead of the spreadshee.

S

SwimMom

I have a complicated spreadsheet which I built a form using vb editor. Is
there a way to "make" it a executable file so I can run it from an icon
automatically opening the form instead of the spreadsheet?
 
B

Beth Melton

Yes and no. You can't create an executable file for an Excel
spreadsheet but you can a Workbook_Open macro to display the UserForm
when the workbook is opened.

In the Project Explorer open the "ThisWorkbook" module. If you select
Workbook from the Object drop down the Workbook_Open procedure will
automatically be added.

--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top