+ Reply to Thread
Results 1 to 2 of 2

Ghost Reference

  1. #1
    Forum Contributor
    Join Date
    06-21-2004
    Posts
    106

    Ghost Reference

    Hello,

    I created a macro that opens up a .doc file after the user is asked to with Application.GetOpenFilename, and perform some actions. However, the macro seems to be using the wrong .doc file...a file that I used hours ago--NOT the one that I'm prompting excel to do.
    I just restarted my computer and now its using the correct file. Is there a script I can add to eliminate this?

  2. #2
    Tom Ogilvy
    Guest

    RE: Ghost Reference

    Possibly you have never successfully closed that instance of work due to a
    persistent reference. Before you run the code a second time, go into the
    task manager and see if Word.exe is already running.

    --
    Regards,
    Tom Ogilvy



    "pikapika13" wrote:

    >
    > Hello,
    >
    > I created a macro that opens up a .doc file after the user is asked to
    > with Application.GetOpenFilename, and perform some actions. However,
    > the macro seems to be using the wrong .doc file...a file that I used
    > hours ago--NOT the one that I'm prompting excel to do.
    > I just restarted my computer and now its using the correct file. Is
    > there a script I can add to eliminate this?
    >
    >
    > --
    > pikapika13
    > ------------------------------------------------------------------------
    > pikapika13's Profile: http://www.excelforum.com/member.php...o&userid=10892
    > View this thread: http://www.excelforum.com/showthread...hreadid=546816
    >
    >


+ 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