Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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

  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Closing Files and Reopening them in VBA

You may check to see if you have screenupdating turned off. If you do, it
won't show the workbook closing and reopening.

"VBAQuest" wrote:

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


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
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 11:41 AM.

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

About Us

"It's about Microsoft Excel"