I'm looking for a simple way to display a pop up message while a lengthy subroutine executes and then closes when exit sub?
Thanks for the help.Please Login or Register to view this content.
Jim
I'm looking for a simple way to display a pop up message while a lengthy subroutine executes and then closes when exit sub?
Thanks for the help.Please Login or Register to view this content.
Jim
Hi Jim,
Msgbox's are always displayed as modal (e.g. they hault code and wait for user input before proceeding). The easiest way to get around this would probably be to create a custom userform, have it display the message you want, and call the userform using vbmodeless (e.g. non-modal). This allows all other functions to continue while being displayed.
If you provide a sample workbook and what messages you want to appear, I could create a userform for you and show you the correct syntax to call/close it.
Hope you find this helpful,
Nick
Hi Jim,
The best example for this are progress meters (bars). They show the user how much progress has happened, without stopping the code from continuing to run. In the Water Cooler there is a thread that I started dedicated to this. In it you will find many examples.
Let us know if you need any further assistance.
abousetta
Please consider:
Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Thanks Aousetta. Do you have a link to the Water Cooler and the thread you mention?
Jim
Here is the link...
http://www.excelforum.com/the-water-...cator-bar.html
Thanks Abousetta. I'm sure I will find something in here!
Hi,
it is pretty simple if you use Userforms. To give it a kick-start I have included a Userform into the attached worksheet.
Hope this is what you needed
Regards
Theo
Remember To Do the Following....
1. Upload sample files
2. Thank those who have helped you by clicking the Star below the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Thanks Fettertiger. I'll give it a try as well.
Thanks Medpack. Lot's of good advice.
The first thing to do before any of this is to check that your code is as fast as possible - avoid selecting, only work on specific data not whole columns, avoid looping etc.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks