Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default "Loading..." Splash Screen in Excel

Try again.

Try this approach,

Create a userform with the 'splash' details
Instead of running the macro, load the form and have the form run the macro
in it's Activate event.
When the macro completes, unload the form programmatically.

Something like

Private Sub UserForm_Activate()
myMacro
Unload Me
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Gary Phillips" wrote in message
...
Okay, I've been tasked with putting a "loading splash screen" on the

screen while a macro works in the background (this macro could take 30-45
seconds). So I created a simple dialog box and have it show itself while the
macro is loading. Once it finishes I have it hide itself but it doesn't
work. (Box1.Hide) Instead, the user has to click the x button to close the
dialog box.

How can I make the dialog box close itself?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default "Loading..." Splash Screen in Excel

Okay, I've got it working except that when it loads the splash screen form it doesn't show the label. The actual body of the form is all white. Why isn't it loading the label on the form (that says the text "Loading...") Any ideas? (I even set ScreenUpdating to TRUE and that still didn't fix it.)

"Bob Phillips" wrote:

Try again.

Try this approach,

Create a userform with the 'splash' details
Instead of running the macro, load the form and have the form run the macro
in it's Activate event.
When the macro completes, unload the form programmatically.

Something like

Private Sub UserForm_Activate()
myMacro
Unload Me
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Gary Phillips" wrote in message
...
Okay, I've been tasked with putting a "loading splash screen" on the

screen while a macro works in the background (this macro could take 30-45
seconds). So I created a simple dialog box and have it show itself while the
macro is loading. Once it finishes I have it hide itself but it doesn't
work. (Box1.Hide) Instead, the user has to click the x button to close the
dialog box.

How can I make the dialog box close itself?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default "Loading..." Splash Screen in Excel

I f your form is named MyForm, then:

Load MyForm

will load your form into memory.

MyForm.Show

loads your form into memory (if it hasn't been already) and displays it
also.

MyForm.Hide

hides your form but keeps it in memory.

Unload MyForm

hides your form (if it's being displayed) and also unloads it from memory.

HTH.

-gk-



"Gary Phillips" wrote in message
...
Okay, here's a stupid question. How do I load the form now? I tried to

just Label1.Show but it didn't work.

"Bob Phillips" wrote:

Try again.

Try this approach,

Create a userform with the 'splash' details
Instead of running the macro, load the form and have the form run the

macro
in it's Activate event.
When the macro completes, unload the form programmatically.

Something like

Private Sub UserForm_Activate()
myMacro
Unload Me
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Gary Phillips" wrote in

message
...
Okay, I've been tasked with putting a "loading splash screen" on the

screen while a macro works in the background (this macro could take

30-45
seconds). So I created a simple dialog box and have it show itself while

the
macro is loading. Once it finishes I have it hide itself but it doesn't
work. (Box1.Hide) Instead, the user has to click the x button to close

the
dialog box.

How can I make the dialog box close itself?






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "Loading..." Splash Screen in Excel

Try setting the 'Showmodal' property of the form to False, providing yo
are not on 97

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default "Loading..." Splash Screen in Excel

Gary,

precede the macro call with

Me.Repaint

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Gary Phillips" wrote in message
...
Okay, here's a stupid question. How do I load the form now? I tried to

just Label1.Show but it didn't work.

"Bob Phillips" wrote:

Try again.

Try this approach,

Create a userform with the 'splash' details
Instead of running the macro, load the form and have the form run the

macro
in it's Activate event.
When the macro completes, unload the form programmatically.

Something like

Private Sub UserForm_Activate()
myMacro
Unload Me
End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Gary Phillips" wrote in

message
...
Okay, I've been tasked with putting a "loading splash screen" on the

screen while a macro works in the background (this macro could take

30-45
seconds). So I created a simple dialog box and have it show itself while

the
macro is loading. Once it finishes I have it hide itself but it doesn't
work. (Box1.Hide) Instead, the user has to click the x button to close

the
dialog box.

How can I make the dialog box close itself?






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 2007: top of screen "File Name [Group]", how to remove [Grou Lightjag Excel Discussion (Misc queries) 3 April 2nd 23 07:08 PM
"Document not saved" "error in loading DLL" Tracey L Excel Discussion (Misc queries) 0 December 1st 08 12:57 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"Loading..." Splash Screen in Excel Bob Phillips[_6_] Excel Programming 0 July 20th 04 05:55 PM
Excel automation "Error loading DLL" Paul Hewson Excel Programming 0 January 5th 04 08:34 PM


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