ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   processing message (https://www.excelbanter.com/excel-programming/296284-processing-message.html)

Hans

processing message
 
I have a macro that takes quite a long to run and I would
like to show some kind of message during processing,
like "Please wait - data being processed". What is the
best way to do this?

Hans



Don Guillett[_4_]

processing message
 
try

application.statusbar="your message here"
code
appliation.statusbar=""

--
Don Guillett
SalesAid Software

"hans" wrote in message
...
I have a macro that takes quite a long to run and I would
like to show some kind of message during processing,
like "Please wait - data being processed". What is the
best way to do this?

Hans





Bob Phillips[_6_]

processing message
 
Create a form with that message on and launch your macro from the form code.

If you want to show a progress bar, here are a few examples of good progress
bars

http://www.enhanceddatasystems.com/E...rogressBar.htm
http://www.cpearson.com/excel/Progress.htm
http://j-walk.com/ss/excel/files/developer.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"hans" wrote in message
...
I have a macro that takes quite a long to run and I would
like to show some kind of message during processing,
like "Please wait - data being processed". What is the
best way to do this?

Hans





AA2e72E[_2_]

processing message
 
If you used MsgBox to show your message, the macro will halt and wait for user interaction. You can show a form with a progres bar-- overkill, I think

I would show the message on the application.status bar (help file) and turn the mouse pointer to an hourglass.

Hans

processing message
 

thanks


-----Original Message-----
try

application.statusbar="your message here"
code
appliation.statusbar=""

--
Don Guillett
SalesAid Software

"hans" wrote in

message
...
I have a macro that takes quite a long to run and I

would
like to show some kind of message during processing,
like "Please wait - data being processed". What is the
best way to do this?

Hans




.


Don Guillett[_4_]

processing message
 
This was a simple approach but what you asked for.

--
Don Guillett
SalesAid Software

"Hans" wrote in message
...

thanks


-----Original Message-----
try

application.statusbar="your message here"
code
appliation.statusbar=""

--
Don Guillett
SalesAid Software

"hans" wrote in

message
...
I have a macro that takes quite a long to run and I

would
like to show some kind of message during processing,
like "Please wait - data being processed". What is the
best way to do this?

Hans




.





All times are GMT +1. The time now is 02:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com