ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto show a form (https://www.excelbanter.com/excel-programming/373812-auto-show-form.html)

Striker

Auto show a form
 
Whets the best way to have a form show on opening of a spreadsheet?



Pops Jackson

Auto show a form
 
In a module place the following.

Sub Auto_Open()
Sheets("Form-Home").activate ' The sheetname that the form is assigned to
Formname.show ' The name of the form
end sub
--
Pops Jackson


"Striker" wrote:

Whets the best way to have a form show on opening of a spreadsheet?




Dave Peterson

Auto show a form
 
One way:

Option Explicit
Sub Auto_Open()
userform1.show
end sub

This would go in a general module.

Striker wrote:

Whets the best way to have a form show on opening of a spreadsheet?


--

Dave Peterson


All times are GMT +1. The time now is 01:54 PM.

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