Hi,
I am trying to get an excel data form to open automaticaly for a spreadsheet every time I open the workbook. Does anyone know how this can be done???
Hi,
I am trying to get an excel data form to open automaticaly for a spreadsheet every time I open the workbook. Does anyone know how this can be done???
Good afternoon phillb
Try :
HTH![]()
Please Login or Register to view this content.
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
Thanks Dominic. Unfortunately I am actualy using a standard form automaticaly generated by excel and am unsure how to alter the code for this. Is there any other solution that you may know to this??? Any help would be much appreciated.
Hi phillb
Not sure what you mean by this. If you are referring to the standard dataform (Data > Form), then this is the dialog box opened automatically by the macro I supplpied.I am actualy using a standard form automaticaly generated by excel
Can you expand?
HTH
DominicB
I think that this may be the solution I am looking for. How do I enetr this new code???
Hi
Open just the spreadsheet you want to affect in Excel.
Press Alt + F11
Go to Insert > Module
Copy the code from above into the large blank pane that appeared
Go to File > Close and Return to Microsoft Excel
This should then save with your workbook and run automatically every time it's opened.
HTH
DominicB
Thanks. This seems to work a treat.
If I wanted to add drop down menus relating to lists that I have, how would I go about creating these and putting them into the form???
Good afternoon
You don't. You have to enter all the data via textboxes. If you want that kind of thing you will need to program your own using a UserForm to enter data ...If I wanted to add drop down menus relating to lists that I have, how would I go about creating these and putting them into the form???
or
You could utilise John Walkenbachs own form utility.
http://j-walk.com/ss/dataform/index.htm
This is a free add-in which does support dropdown boxes. When invoked the add-in adds an extra menu item to Excel's Data menu. Details of how to set up the dropdowns can be seen here, or accessed from the forms help file :
http://j-walk.com/ss/dataform/cusomizing.htm
HTH
DominicB
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks