Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Place a User Form on Start Up


Hello again,

Firstly, thanks for the guys who helped on my last problem. Now, here's
my next!

I have a user form (UserForm1) that I need to have automatically open
when the spreadsheet is opened (it controls unhiding various
worksheets). Can anyone suggest what I need to do for this to happen?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=552614

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Place a User Form on Start Up

In the OPEN event of the workbook put

userform1.show

that should do it!


SamuelT wrote:
Hello again,

Firstly, thanks for the guys who helped on my last problem. Now, here's
my next!

I have a user form (UserForm1) that I need to have automatically open
when the spreadsheet is opened (it controls unhiding various
worksheets). Can anyone suggest what I need to do for this to happen?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=552614


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Place a User Form on Start Up

Hi Samuel,

Try:

'=============
Private Sub Workbook_Open()
UserForm1.Show
End Sub
'<<=============

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module *not* a standard module or a sheet module:

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)

Select 'View Code' from the menu and paste the code.

Alt-F11 to return to Excel.


---
Regards,
Norman



"SamuelT" wrote in
message ...

Hello again,

Firstly, thanks for the guys who helped on my last problem. Now, here's
my next!

I have a user form (UserForm1) that I need to have automatically open
when the spreadsheet is opened (it controls unhiding various
worksheets). Can anyone suggest what I need to do for this to happen?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile:
http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=552614



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 with looping doesn't start at right place. Rominall Excel Programming 2 February 14th 06 07:36 PM
I want to set up a form in excel where I can place a jpeg or pic. karl Excel Discussion (Misc queries) 1 June 25th 05 01:15 AM
How to auto place start/stop characters in Excel w/barcode fonts? Mel Excel Discussion (Misc queries) 1 May 12th 05 11:29 PM
How to: User Form to assign a user defined range to a macro variab TrevTrav Excel Programming 1 March 22nd 05 07:57 PM


All times are GMT +1. The time now is 01:05 PM.

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"