Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 542
Default activate userform when a worksheet tab is selected

Hello,

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

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default activate userform when a worksheet tab is selected

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




"James" wrote in message
...
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
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
Userform causing a slip for Worksheet activate? [email protected] Excel Programming 4 September 12th 08 08:51 PM
How do I activate the next cell in a selected range? Rubble Excel Programming 8 August 23rd 07 12:22 AM
Mscal.ocx on a UserForm to return selected date to WorkSheet JennLee Excel Programming 2 November 28th 06 06:09 AM
Activating userform and filling it with data form row where userform is activate Marthijn Beusekom via OfficeKB.com[_2_] Excel Programming 3 May 6th 05 05:44 PM
Activate button when row selected. Johnnyb Excel Programming 3 August 17th 04 01:51 PM


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

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

About Us

"It's about Microsoft Excel"