Please wait, your macro is running.

mhdakhtar8

New Member
Joined
Feb 4, 2013
Messages
36
Hi,

After reading a lot on Internet, I'm asking for help. I've a macro which takes around 3-4 mins to complete. I want to show user a notification while that macro is running that "macro is running" and automatically disappear the notification once macro is completed.

I've already checked the user form progress bar but I want only notification.

Can anyone suggest anything?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi mhdakhtar8,

You can use the status bar (bottom of the workbook) to do this like so:

Code:
Option Explicit
Sub Macro1()

    Application.StatusBar = "Please wait, your macro is running..." 'Start of your macro
    
    'Your code here
    
    Application.StatusBar = "" 'End of your macro

End Sub

HTH

Robert
 
Upvote 0
Hi mhdakhtar8,

You can use the status bar (bottom of the workbook) to do this like so:

Rich (BB code):
Option Explicit Sub Macro1() Application.StatusBar = "Please wait, your macro is running..." 'Start of your macro Application.Cursor = xlWait 'Your code here Application.Cursor = xlDefault Application.StatusBar = "" 'End of your macro End Sub
You could also add code lines I posted in red to Robert's code to make sure the cursor shows the "I'm working" icon when over the Excel window during the code's execution.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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
Back
Top