ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Show Userform when Application Opens (https://www.excelbanter.com/excel-programming/432581-show-userform-when-application-opens.html)

ironhydroxide

Show Userform when Application Opens
 
I am wondering how one gets a userform to appear as the first thing when you
open an XLSX file. (2007)

I know it was somewhere here, but i cannot seem to find it now.

Thanks for any replies

ironhydroxide

Wouter[_3_]

Show Userform when Application Opens
 
"ironhydroxide" wrote:

I am wondering how one gets a userform to appear as the first thing when you
open an XLSX file. (2007)

I know it was somewhere here, but i cannot seem to find it now.

Thanks for any replies

ironhydroxide


In the VB editor (Alt+F11) choose the workbook in the left menu. Here you
can put your code in this sub:

Private Sub Workbook_Open()

End Sub

Note that this only works when macro's are enabled when you open the file.

Gord Dibben

Show Userform when Application Opens
 
Place code into Thisworkbook module.

Private Sub Workbook_Open()
frmCalendar.Show 'Edit form name to suit.
End Sub


Gord Dibben MS Excel MVP



On Tue, 18 Aug 2009 14:45:02 -0700, ironhydroxide
wrote:

I am wondering how one gets a userform to appear as the first thing when you
open an XLSX file. (2007)

I know it was somewhere here, but i cannot seem to find it now.

Thanks for any replies

ironhydroxide




All times are GMT +1. The time now is 09:02 PM.

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