Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default User Form Question

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

Steve


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default 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?

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
User Form Question Tony Excel Programming 1 October 28th 04 04:40 PM
User Form Question Ray Batig Excel Programming 2 January 17th 04 03:28 PM
User form question Haas[_2_] Excel Programming 4 November 27th 03 10:25 AM
User form question Gareth[_3_] Excel Programming 2 November 20th 03 09:37 PM
User form question Gareth[_3_] Excel Programming 1 October 29th 03 06:07 PM


All times are GMT +1. The time now is 07:52 AM.

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"