PC Review


Reply
Thread Tools Rate Thread

activate userform when a worksheet tab is selected

 
 
James
Guest
Posts: n/a
 
      8th May 2009
Hello,

How do I automatically activate a userform when a user selects a specific
worksheet tab? What's the code for that?

Thank you
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      8th May 2009
Place code on the Workbook code page

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
If Sh.Name = "Sheet1" Then
UserForm1.Show
End If
End Sub

--

Regards,
Nigel
(E-Mail Removed)



"James" <(E-Mail Removed)> wrote in message
news:2C71A9AC-25E5-473D-A30A-(E-Mail Removed)...
> Hello,
>
> How do I automatically activate a userform when a user selects a specific
> worksheet tab? What's the code for that?
>
> Thank you


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform causing a slip for Worksheet activate? MiataDiablo@gmail.com Microsoft Excel Programming 4 12th Sep 2008 08:51 PM
Password userform activate Moh Microsoft Excel Misc 2 14th Dec 2007 09:01 AM
Mscal.ocx on a UserForm to return selected date to WorkSheet =?Utf-8?B?SmVubkxlZQ==?= Microsoft Excel Programming 2 28th Nov 2006 06:09 AM
Activating userform and filling it with data form row where userform is activate Marthijn Beusekom via OfficeKB.com Microsoft Excel Programming 3 6th May 2005 05:44 PM
Userform.Activate Neil Microsoft Excel Programming 2 15th Sep 2003 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 PM.