Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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?


--
pikapika13
------------------------------------------------------------------------
pikapika13's Profile: http://www.excelforum.com/member.php...o&userid=10892
View this thread: http://www.excelforum.com/showthread...hreadid=546816

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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
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
Ghost Formulas PJG Excel Discussion (Misc queries) 2 April 16th 07 03:41 PM
Ghost Macro Aaron5 Excel Programming 2 May 3rd 06 03:42 PM
ghost macro gevans Excel Worksheet Functions 4 March 8th 06 04:40 PM
I seem to have a ghost macro. SongCoyote Excel Discussion (Misc queries) 1 September 13th 05 01:04 AM
Ghost of Excel Paul - NottsUK Excel Programming 11 April 5th 05 07:38 PM


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