LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Closing Files and Reopening them in VBA

Hi, I have a blackbox Excel Sheet with a bunch of macros that I close
and open through another excel sheet because the blackbox Excel sheet
needs to 'refresh' every once in a while. This I do rather simply using
ActiveWorkbook.Close False method. The problem I'm having is that it
doesn't seem to close 'fully' or get refreshed properly. This may be
because the next line in my macro opens it up again as it's supposed
to, although I did try using an Application.Wait for 60 seconds between
the two. Also, because the process is so quick, visually the screen
doesn't actually show the file closing down. Is there a way to ensure
that the Activeworkbook.Close fully closes the file or are there any
other commands? Thanks in advance.
Naresh

 
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
Closing and reopening the same file Tom Excel Discussion (Misc queries) 16 March 11th 09 09:31 PM
Closing files and saving files dan Excel Worksheet Functions 0 August 15th 06 04:07 AM
Userform retain data after closing and reopening Joel Mills Excel Programming 4 June 20th 05 08:57 PM
My comments reformat after closing and reopening. Picman Excel Discussion (Misc queries) 0 May 25th 05 04:34 PM
macro statement will not run a second time without closing and reopening Pete Straman via OfficeKB.com Excel Programming 2 February 28th 05 03:14 PM


All times are GMT +1. The time now is 09:36 PM.

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"