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![]()
Sub Auto_Open() ActiveSheet.ShowDataForm End Sub
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks