Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Load UserForm1 on sheet tab selection

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Load UserForm1 on sheet tab selection

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warehouse load sheet - Help!! Jamie Excel Discussion (Misc queries) 0 July 1st 08 02:31 PM
Can I Somehow load a Spread Sheet thru a Scanner murashid Charts and Charting in Excel 2 August 18th 05 01:12 PM
Can I Somehow load a Spread Sheet thru a Scanner murashid Excel Discussion (Misc queries) 4 August 18th 05 01:12 PM
how do i down load excelspread sheet file abdee Setting up and Configuration of Excel 1 May 18th 05 10:39 PM
Qn: Load Data into UserForm1?? Michael Vaughan Excel Programming 2 August 19th 04 03:41 AM


All times are GMT +1. The time now is 11:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"