+ Reply to Thread
Results 1 to 2 of 2

Closing Files and Reopening them in VBA

Hybrid View

Guest Closing Files and Reopening... 11-17-2005, 07:10 AM
Guest RE: Closing Files and... 11-17-2005, 10:55 AM
  1. #1
    VBAQuest
    Guest

    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. #2
    JNW
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1