ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to search for a file and return it's full path (https://www.excelbanter.com/excel-programming/362820-macro-search-file-return-its-full-path.html)

jim9912

Macro to search for a file and return it's full path
 
Is there a way to (using an escel VBA macro) search for a filename and
return its path? THe file I am looking for will always be the same,
but could have a different path from machine to machine.


THanks!


Tom Ogilvy

Macro to search for a file and return it's full path
 

http://support.microsoft.com/kb/185476/EN-US/
How To Search Directories to Find or List Files

http://support.microsoft.com/kb/185601/EN-US/
HOW TO: Recursively Search Directories by Using FileSystemObject

http://support.microsoft.com/kb/186118/EN-US/
How To Use FileSystemObject with Visual Basic

--
Regards,
Tom Ogilvy


"jim9912" wrote:

Is there a way to (using an escel VBA macro) search for a filename and
return its path? THe file I am looking for will always be the same,
but could have a different path from machine to machine.


THanks!




All times are GMT +1. The time now is 12:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com