#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default user forms


Hi,

is it possible for a user form to open automatically when the .xls doc
containing it is opened?


--
sam1
------------------------------------------------------------------------
sam1's Profile: http://www.excelforum.com/member.php...o&userid=18280
View this thread: http://www.excelforum.com/showthread...hreadid=521537

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default user forms

Use the Workbook_Open event procedure. In the ThisWorkbook code
module, paste the following code:

Private Sub Workbook_Open()
userform1.Show
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sam1" wrote
in message
...

Hi,

is it possible for a user form to open automatically when the
.xls doc
containing it is opened?


--
sam1
------------------------------------------------------------------------
sam1's Profile:
http://www.excelforum.com/member.php...o&userid=18280
View this thread:
http://www.excelforum.com/showthread...hreadid=521537



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 forms Obi-Wan Kenobi Excel Discussion (Misc queries) 0 March 21st 06 08:28 PM
User forms help mav93[_6_] Excel Programming 2 March 2nd 06 08:47 PM
User Forms Runner77 Excel Discussion (Misc queries) 1 January 12th 06 06:20 AM
User Forms CindyK Excel Programming 6 November 5th 04 02:06 PM
User Forms Nev[_2_] Excel Programming 4 October 4th 03 12:35 AM


All times are GMT +1. The time now is 01:06 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"