Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Wait time between Saving and other activity

I have code that closes and saves a large workbook. I then display a message
box, but I can't seem to do anything with it for a while. I'm thinking it's
because the large workbook isn't really completely closed yet. Is there
some code that I can use to check that it's closed?
--
HTH,
Barb Reinhardt

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default Wait time between Saving and other activity

Just a thought, couldn't you add some code right before the msgbox
routine that counts the number of visible windows, or checks if the
file is still open, before displaying?

--JP

On Aug 13, 3:27*pm, Barb Reinhardt
wrote:
I have code that closes and saves a large workbook. *I then display a message
box, but I can't seem to do anything with it for a while. *I'm thinking it's
because the large workbook isn't really completely closed yet. * Is there
some code that I can use to check that it's closed?
--
HTH,
Barb Reinhardt


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Wait time between Saving and other activity

Take a look at doevents. It might help with your issue...

http://msdn.microsoft.com/en-us/library/aa262728.aspx
--
HTH...

Jim Thomlinson


"Barb Reinhardt" wrote:

I have code that closes and saves a large workbook. I then display a message
box, but I can't seem to do anything with it for a while. I'm thinking it's
because the large workbook isn't really completely closed yet. Is there
some code that I can use to check that it's closed?
--
HTH,
Barb Reinhardt

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
Alert if the travel activity is after the work activity Go Bucks!!! Excel Worksheet Functions 3 September 11th 09 05:44 PM
daily activity time log Lesah Excel Discussion (Misc queries) 6 May 2nd 08 03:33 AM
Saving files. Please wait. sungen99[_65_] Excel Programming 4 February 10th 06 08:30 PM
date time stamp excel activity log entry? Skullcramp Excel Programming 1 November 12th 05 10:17 PM
Wait time variable Brian Matlack[_20_] Excel Programming 2 November 1st 05 05:29 PM


All times are GMT +1. The time now is 07:45 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"