Display Message to User While Application Runs?

jasonyantiss

New Member
Joined
Nov 19, 2009
Messages
3
Hello,

Is there a way to Display a message to the user while an application is running?

For example, while a macro is doing it's thing, at it takes some time for the macro to run, instead of showing everything that's going on, could a message be displayed that says "Your Query is Running" ? (just as an example)

Thanks very much for any help!
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
jasonyantiss,

You could use Excel's Status Bar.

Code:
  '***** Near the beginning of your code. *****
  Application.StatusBar = "Your Query is Running"

  
  'The bulk of your macro code
  

  '***** Near the end of your code. *****
  Application.StatusBar = ""
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
At the end it is better to use

Code:
Application.StatusBar = False

to allow Excel to display information in the status bar.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,575
Messages
5,596,961
Members
414,114
Latest member
Lost_User21

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