ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   User Form Question (https://www.excelbanter.com/excel-programming/331390-user-form-question.html)

Steve Klenner

User Form Question
 
I would like to show userform1 automatically when I access sheet4 in my
workbook...anyway to accomplish this?

Steve



STEVE BELL

User Form Question
 
Put this into the worksheet module for Sheet4
(substitute the name of the form if needed)

Private Sub Worksheet_Activate()
Userform1.Show
End Sub

--
steveB

Remove "AYN" from email to respond
"Steve Klenner" wrote in message
...
I would like to show userform1 automatically when I access sheet4 in my
workbook...anyway to accomplish this?

Steve




JE McGimpsey

User Form Question
 
Put this in your sheet4 code module:

Private Sub Worksheet_Activate()
Dim fmMyForm As UserForm1
Set fmMyForm = New UserForm1
fmMyForm.Show
End Sub


In article ,
"Steve Klenner" wrote:

I would like to show userform1 automatically when I access sheet4 in my
workbook...anyway to accomplish this?



All times are GMT +1. The time now is 10:23 AM.

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