Need help creating a "Please wait" Message prompt

shukero

Board Regular
Joined
Dec 3, 2015
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I have a pretty long macro which takes about 30 seconds to finish. However, it seems that my co-workers are not that patient; and so I need a message prompt to come up when the macro is running. Is this a possibility?

Also I'm worried that the way I have my macro set up might cause issues with a prompt box. I have a main macro that runs the majority of the code; however I have several instances of "Application.Run" within it. Would this mess up any prompt that I may try to implement?

thanks,
~Mike
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Jambi46n2

Active Member
Joined
May 24, 2016
Messages
256
Office Version
  1. 365
Platform
  1. Windows
Have you considering using a UserForm as the prompt itself?

So at the begininning of the Code theres:

Show UserForm

End of Code:

Unload Me

(Closes UserForm)
 
Upvote 0

wwbwb

Well-known Member
Joined
Oct 20, 2003
Messages
513
I had something similar. I created a userform with the message telling the user to wait.
I have the following at the beginning of the macro.
Code:
Userform1.Show vbModeless

Then I have this at the end to dismiss it. Has always worked for me.

Code:
Userform1.Hide
 
Upvote 0

Forum statistics

Threads
1,190,878
Messages
5,983,366
Members
439,841
Latest member
goodwillhunting

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top