Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does any one have any examples on how to load a userform when a sheet tab is
selected? Not too sure as to what event would load the form.... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use the activate event procedure of the worksheet. Right click on the
tab you want to load the form when it is selected. Choose View Code. This takes you to the VBE for that sheet. Just above the code window you will see a drop down with "General" in it. Select Worksheet instead of general. A procedure for selection change will automatically add itself to the code window. You can delete this as that is not the event you want. In the Drop dow to the right of where "General" was and Worksheet is, is a drop down. Select "Activate" from the list. The code added will run whenever the sheet is selected, so you should end up with something like this Private Sub Worksheet_Activate() Userform1.show End Sub -- HTH... Jim Thomlinson "Wayne_Perth_WA" wrote: Does any one have any examples on how to load a userform when a sheet tab is selected? Not too sure as to what event would load the form.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Warehouse load sheet - Help!! | Excel Discussion (Misc queries) | |||
Can I Somehow load a Spread Sheet thru a Scanner | Charts and Charting in Excel | |||
Can I Somehow load a Spread Sheet thru a Scanner | Excel Discussion (Misc queries) | |||
how do i down load excelspread sheet file | Setting up and Configuration of Excel | |||
Qn: Load Data into UserForm1?? | Excel Programming |