Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Can you build in a delay...

I've got a spreadsheet that opens up, refreshes the data, calculates some
statistics, updates some graphs, and the prints out a report. It all
happens so fast my operators are unsure if it actually does anything (other
than waiting for the printout). Is there a way to build in delays that
wouldn't require operator interaction to show them the status of the
process.

I was thinking of a single cell that had different text in it depending on
the step (ie., updating data, formatting report, printing report, etc.) but
I want to build in a delay function so that the messages don't fly buy so
fast the operator cannot see them.

Thanks,



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Can you build in a delay...


Hello Jeff,

Copy the following lines of codes in between the appropriate place in your
macro. Replace the message as necessary.

Application.StatusBar = "Wait for 5 seconds" ' Show a message to status
bar
Application.Wait Now() + TimeSerial(0, 0, 5) 'Will pause the macro for 5
seconds

Don't forget to put this line at the end of your code.

Application.StatusBar = False 'return to the default status bar

Hope this help.

Jon-jon


"Jeff Harbin" wrote in message
nk.net...
I've got a spreadsheet that opens up, refreshes the data, calculates some
statistics, updates some graphs, and the prints out a report. It all
happens so fast my operators are unsure if it actually does anything

(other
than waiting for the printout). Is there a way to build in delays that
wouldn't require operator interaction to show them the status of the
process.

I was thinking of a single cell that had different text in it depending on
the step (ie., updating data, formatting report, printing report, etc.)

but
I want to build in a delay function so that the messages don't fly buy so
fast the operator cannot see them.

Thanks,





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Can you build in a delay...

An obvious solution would be to display a message box by adding something like the following as the last line of the macro

MsgBox "The sheet has been updated by the macro", vbOKOnly, "Processing Completed"

Adapt it to suit your own messages

DavidP

On Mon, 17 Nov 2003 04:26:52 GMT, "Jeff Harbin" wrote:

I've got a spreadsheet that opens up, refreshes the data, calculates some
statistics, updates some graphs, and the prints out a report. It all
happens so fast my operators are unsure if it actually does anything (other
than waiting for the printout). Is there a way to build in delays that
wouldn't require operator interaction to show them the status of the
process.

I was thinking of a single cell that had different text in it depending on
the step (ie., updating data, formatting report, printing report, etc.) but
I want to build in a delay function so that the messages don't fly buy so
fast the operator cannot see them.

Thanks,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delay in formula Erol Excel Discussion (Misc queries) 2 May 6th 09 01:34 PM
delay in entry etc.... shaji Excel Discussion (Misc queries) 1 October 31st 06 01:39 PM
Calculation Delay Timmy Mac1 Excel Discussion (Misc queries) 0 June 20th 06 03:24 PM
web query help.. delay? JustinB Excel Worksheet Functions 1 June 17th 06 07:43 PM
Print Delay spartanmba Excel Discussion (Misc queries) 2 March 11th 05 07:51 PM


All times are GMT +1. The time now is 06:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"