ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Open Form Automatically in Excel File (https://www.excelbanter.com/new-users-excel/55728-open-form-automatically-excel-file.html)

Bejewell

Open Form Automatically in Excel File
 
I am not new to Excel, but I am new to using forms within the application.
I've created a form to make it easier for a user to enter the information
that I need in my table. But I'd like the form to open automatically when
the user opens the Excel file. (Otherwise, how will they even know that a
form exists for them to use?) I'm sure there has to be a way to do this,
but I haven't found it yet. Any suggestions would be greatly appreciated.
Thanks!

Peo Sjoblom

Open Form Automatically in Excel File
 
Assuming you mean Dataform, record a macro when you open the form, right
click the excel icon next to the file menu, select view code, from left
dropdown in main window select workbook and then paste in the code from the
recorded macro between the 2 lines, will probably look like

Private Sub Workbook_Open()
ActiveSheet.ShowDataForm
End Sub

make sure all users accept the macro when opening the workbook

--

Regards,

Peo Sjoblom

"Bejewell" wrote in message
...
I am not new to Excel, but I am new to using forms within the application.
I've created a form to make it easier for a user to enter the information
that I need in my table. But I'd like the form to open automatically when
the user opens the Excel file. (Otherwise, how will they even know that a
form exists for them to use?) I'm sure there has to be a way to do this,
but I haven't found it yet. Any suggestions would be greatly appreciated.
Thanks!





All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com