Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default UserForms and double-clicked worksheets...

Hi all,

I have a macro that is loaded (via the XLSTART directory) which first
displays a splash-screen using a UserForm and an OnTime event to close it
after a couple of seconds. This works fine.

However - if I start Excel by double-clicking on an .XLS sheet via Explorer,
Excel starts, my first worksheet loads (with it's macro), I get my pretty
splash screen, it closes, but the file I double-clicked on DOES NOT load.

If I use a MsgBox instead of a UserForm it works correctly. Both worksheets
load.

If I remove my macro worksheet from the XLSTART directory (or even just
disable the UserForm), the double-clicked file loads correctly.

If I start Excel via a shortcut, my macro worksheet loads and I can then
manually open the required worksheet via [file], [open], etc... and this
works too.

Does anyone know why UserForm appears to stop Excel loading any worksheets
at application startup?

I would rather use a UserForm instead of a MsgBox as a UserForm can be made
to look nicer... (grin)

Thanks!

Dan :)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default UserForms and double-clicked worksheets...

Have you tried showing it as a modeless form?

--
Regards,
Tom Ogilvy

"Dan" wrote in message
...
Hi all,

I have a macro that is loaded (via the XLSTART directory) which first
displays a splash-screen using a UserForm and an OnTime event to close it
after a couple of seconds. This works fine.

However - if I start Excel by double-clicking on an .XLS sheet via

Explorer,
Excel starts, my first worksheet loads (with it's macro), I get my pretty
splash screen, it closes, but the file I double-clicked on DOES NOT load.

If I use a MsgBox instead of a UserForm it works correctly. Both

worksheets
load.

If I remove my macro worksheet from the XLSTART directory (or even just
disable the UserForm), the double-clicked file loads correctly.

If I start Excel via a shortcut, my macro worksheet loads and I can then
manually open the required worksheet via [file], [open], etc... and this
works too.

Does anyone know why UserForm appears to stop Excel loading any worksheets
at application startup?

I would rather use a UserForm instead of a MsgBox as a UserForm can be

made
to look nicer... (grin)

Thanks!

Dan :)



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
Excel files not opening when double clicked Dale Fye Excel Discussion (Misc queries) 4 March 15th 08 04:00 PM
Excel "can't find" double-clicked files [email protected] Excel Discussion (Misc queries) 2 February 16th 08 05:44 PM
Formula not displaying colored border when double clicked Joker Excel Discussion (Misc queries) 0 February 2nd 07 11:34 AM
Change cell value when right-clicked/double-clicked grime[_5_] Excel Programming 5 October 17th 05 01:52 PM
VB6, How do i open (instead of edit) an excel OLE doc when it is double clicked? TexN Excel Programming 1 October 17th 05 12:04 PM


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