Popup to show ongoing activity

C

Colin Hayes

Hi All

I'm trying to have a popup show on my excel page while the cell content
is updating from an external source.

I'm using the 'Refresh All' icon to obtain information from the
Internet. While this is happening I'd like a popup to say 'Please Wait -
Refreshing'. It could close by itself once complete.

Can someone advise if this is possible?

Grateful for any advice.

Best Wishes
 
J

Jim Cone

The way this would normally work is to create a userform with your message on it.
Then call Thisworkbook.RefreshAll from the UserForm_Activate event.
Then close the userform when the code completes.

The hang-up may be if the userform code doesn't wait for the refresh to complete.
It that happens you will have to determine if there is some flag is available that will tell you the
refresh is complete.
(for instance, does some cell on your worksheet always change at the end of the refresh)
--
Jim Cone
Portland, Oregon USA .
http://www.mediafire.com/PrimitiveSoftware .
(List Files XL add-in: finds and lists files/folders with hyperlinks)




"Colin Hayes"
<[email protected]>
wrote in message
news:[email protected]...
 
C

Colin Hayes

Jim Cone said:
The way this would normally work is to create a userform with your message on it.
Then call Thisworkbook.RefreshAll from the UserForm_Activate event.
Then close the userform when the code completes.

The hang-up may be if the userform code doesn't wait for the refresh to complete.
It that happens you will have to determine if there is some flag is available that will
tell you the
refresh is complete.
(for instance, does some cell on your worksheet always change at the end of the
refresh)


Hi Jim

OK Thanks for getting back.

Sounds encouraging. Can you point me in the direction of some code /
advice to do this? I'm not sure that I'm technically able to carry out
what you suggest , but I'll have a go.

BTW Yes , there is a cell which always changes at the end of the refresh
so that would be available to use.



Best Wishes
 
G

GS

Adding to Jim's suggestion...

Excel <20nn> Power Programming with VBA
--Working with Userforms
----Advanced Userform Techniques
------Displaying a Progress Indicator
 
C

Colin Hayes

Jim Cone said:
Also, Amazon has a used edition for sale at 1 cent plus 3.99 shipping.
JBC

HI Guys

OK I'll go and get the book from Amazon. That's probably best.


Best Wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top