Visual Cue That Macro is running?

cterjesen

Board Regular
Joined
Jun 23, 2003
Messages
119
Is there a way (a visual cue like a status bar or something) to have the user of my database to know that a macro is still running and/or when the macro is finished running?

Thanks!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
The macro uses the TransferSpreadsheet action to import data from a number of different Excel files.
 
Upvote 0
cterjesen,
Using the macros in Access you can turn the hourglass on or off. You might want to use a macro to turn on the hourglass, do the transfer spreadsheet, then turn the hour glass off again.

HTH
Cal
 
Upvote 0
Change the Hourglass to No in Actions of the macro. To stop warning messages from coming up set SetWarnings to No, but don't forget to set the Setwarnings back to Yes at the end of the macro.
 
Upvote 0
Another option would be to create a form that is displayed while data is processing. Your code would look something like this:

Sub Form_Load()
updatingLabel.caption = "Please wait, updating."
End Sub

Sub After_Update()
updatingLabel.caption = "Update complete. Formatting data."
Call Format_Routine
updatingLabel.caption = "Done."
Docmd.close
End Sub

That would display different messages during different parts of your process and then close the form once your processes were complete.

Kevin
 
Upvote 0

Forum statistics

Threads
1,221,844
Messages
6,162,346
Members
451,760
Latest member
samue Thon Ajaladin

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