ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Documnet_open() code is not working (https://www.excelbanter.com/excel-programming/298952-documnet_open-code-not-working.html)

Payal[_2_]

Documnet_open() code is not working
 
Hi, I have following code in Thisworkbook to load the form but for
some reason its not loading the form. Can someone pl. tell me what
needs to be corrected.


Private Sub Startup()
Load Frm1
Frm1.Show
End Sub

Private Sub Document_New()
Startup
End Sub

Private Sub Document_Open()
Startup
End Sub

Thanks!
-Payal

Anders S[_2_]

Documnet_open() code is not working
 
Payal,

Are you trying to trap when the user opens or creates a new workbook? If so,
this message by Peter Beach may help:
http://tinyurl.com/2f62a

HTH
Anders Silven

"Payal" skrev i meddelandet
om...
Hi, I have following code in Thisworkbook to load the form but for
some reason its not loading the form. Can someone pl. tell me what
needs to be corrected.


Private Sub Startup()
Load Frm1
Frm1.Show
End Sub

Private Sub Document_New()
Startup
End Sub

Private Sub Document_Open()
Startup
End Sub

Thanks!
-Payal




All times are GMT +1. The time now is 07:27 AM.

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