Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default A macro locates files on one PC but not another - why?

An excel macro goes out to the same directory you are running the macro file
from and retrieves information from all files that begin with 'DSS*'. It
runs perfectly on one person's PC and not on another. If the PC is restarted
the macro will then run. Once it has run the first time it won't run the 2nd
time and sends back an excel error saying it can't locate any files.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default A macro locates files on one PC but not another - why?

How do you know what directory the macro is running from? How are you
determining what that directory is in your code?

Rick

"dgild" wrote in message
...
An excel macro goes out to the same directory you are running the macro
file
from and retrieves information from all files that begin with 'DSS*'. It
runs perfectly on one person's PC and not on another. If the PC is
restarted
the macro will then run. Once it has run the first time it won't run the
2nd
time and sends back an excel error saying it can't locate any files.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default A macro locates files on one PC but not another - why?

Post your code...
--
HTH...

Jim Thomlinson


"dgild" wrote:

An excel macro goes out to the same directory you are running the macro file
from and retrieves information from all files that begin with 'DSS*'. It
runs perfectly on one person's PC and not on another. If the PC is restarted
the macro will then run. Once it has run the first time it won't run the 2nd
time and sends back an excel error saying it can't locate any files.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default A macro locates files on one PC but not another - why?

Good point. ThisWorkbook.Path can be different from ActiveWorkbook.Path
--
Gary''s Student - gsnu200799


"Rick Rothstein (MVP - VB)" wrote:

How do you know what directory the macro is running from? How are you
determining what that directory is in your code?

Rick

"dgild" wrote in message
...
An excel macro goes out to the same directory you are running the macro
file
from and retrieves information from all files that begin with 'DSS*'. It
runs perfectly on one person's PC and not on another. If the PC is
restarted
the macro will then run. Once it has run the first time it won't run the
2nd
time and sends back an excel error saying it can't locate any files.



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
formula locates common data in a cell and drops them in other shee Barry Walker Excel Discussion (Misc queries) 9 August 14th 07 04:32 PM
macro to hyperlink individual files in multiple files Gary''s Student Excel Programming 0 March 28th 07 12:17 AM
Macro to open *.dat files and save as .txt (comma delimited text files) [email protected] Excel Programming 2 November 30th 05 05:50 AM
Hyperlink Locates file regardless of it's location AC Excel Discussion (Misc queries) 1 October 5th 05 11:19 PM
Import multiple files macro can't find files Steven Rosenberg Excel Programming 1 August 7th 03 01:47 AM


All times are GMT +1. The time now is 08:16 PM.

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"