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


Is it possible to have an auto open for a user form? I want my use
form to open when I open my workbook, without the worksheets showing.
Is that possible?

Thanks,
Discover

--
Discover
-----------------------------------------------------------------------
Discovery's Profile: http://www.excelforum.com/member.php...fo&userid=2585
View this thread: http://www.excelforum.com/showthread.php?threadid=39370

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Auto Open

In your workbook autoopen (or open event), show your userform.

--
Regards,
Tom Ogilvy

"Discovery" wrote in
message ...

Is it possible to have an auto open for a user form? I want my user
form to open when I open my workbook, without the worksheets showing.
Is that possible?

Thanks,
Discovery


--
Discovery
------------------------------------------------------------------------
Discovery's Profile:

http://www.excelforum.com/member.php...o&userid=25859
View this thread: http://www.excelforum.com/showthread...hreadid=393707



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 296
Default Auto Open

On Sun, 7 Aug 2005 15:30:49 -0500, Discovery
wrote:


Is it possible to have an auto open for a user form? I want my user
form to open when I open my workbook, without the worksheets showing.
Is that possible?

Thanks,
Discovery



AFAIAA there has to be at least one sheet open and visible.

Rgds

__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Auto Open


I think the only way is to make particular workbook hidden (Window -
Hide) and insert into the module code similar to this:


Sub auto_open()
UserForm1.Show (1)
End Sub

Save it then and it should work.

mlhos


--
mlhos
------------------------------------------------------------------------
mlhos's Profile: http://www.excelforum.com/member.php...o&userid=25570
View this thread: http://www.excelforum.com/showthread...hreadid=393707

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Auto Open

Sub Workbook_Open()
UserForm1.Show
Application.Visible = False
End Sub

Be sure to reset the Visible property of the Application object to True when
you dismiss the UserForm.

--

Vasant




"Discovery" wrote in
message ...

Is it possible to have an auto open for a user form? I want my user
form to open when I open my workbook, without the worksheets showing.
Is that possible?

Thanks,
Discovery


--
Discovery
------------------------------------------------------------------------
Discovery's Profile:
http://www.excelforum.com/member.php...o&userid=25859
View this thread: http://www.excelforum.com/showthread...hreadid=393707





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Auto Open

Private Sub Workbook_Open()
ActiveWindow.Visible = False
Userform1.Show
Windows(ThisWorkbook.Name).Visible = True
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

The workbook will flash briefly though.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Discovery" wrote in
message ...

Is it possible to have an auto open for a user form? I want my user
form to open when I open my workbook, without the worksheets showing.
Is that possible?

Thanks,
Discovery


--
Discovery
------------------------------------------------------------------------
Discovery's Profile:

http://www.excelforum.com/member.php...o&userid=25859
View this thread: http://www.excelforum.com/showthread...hreadid=393707



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Auto Open


Thank you for all your help everyone.

Bob Phillips, your code worked the first time, but when I opened it u
the second time, it said, "Run-time error '91': Object variable o
With block variable not set" - any ideas what's happened?

Thanks,
Discover

--
Discover
-----------------------------------------------------------------------
Discovery's Profile: http://www.excelforum.com/member.php...fo&userid=2585
View this thread: http://www.excelforum.com/showthread.php?threadid=39370

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
open up an excel program with an auto open macro [email protected] Excel Programming 2 July 17th 05 04:48 PM
auto open, auto close mike allen[_2_] Excel Programming 1 December 31st 04 09:20 AM
Auto Open Karen[_12_] Excel Programming 5 June 29th 04 02:43 AM
Auto Open won't die or go away Dee Veloper Excel Programming 0 October 29th 03 06:06 PM
Auto Open Todd[_5_] Excel Programming 2 September 4th 03 05:57 PM


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