LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Excel Macro (open and save files with different drives)

Hi,
I'm trying to write a macro that will open and save a file from a lan drive
that may have different drive letters depending on what each person wanted?
I've been susessful in getting a file to open with my current mapped drive
but i won't work if other people use it.

MyFile = Dir$("G:\Daily\Report *.xls*")
Do While MyFile < ""
DirectoryListArray(Counter) = MyFile
MyFile = Dir$
Counter = Counter + 1
Loop

ReDim Preserve DirectoryListArray(Counter - 1)

Thanks for any help,
Josh
 
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
How can I save all open excel files? Cobaum Excel Discussion (Misc queries) 3 September 1st 09 11:02 PM
Fix for open/save files problem Patricia Shannon Excel Discussion (Misc queries) 0 April 25th 06 03:46 PM
How do i save all open files in excel at once? ved_rocker Excel Discussion (Misc queries) 2 February 16th 06 10:11 PM
saving files with mapped drives Derek Excel Discussion (Misc queries) 0 May 9th 05 07:49 PM
Excel files on local drives running from internet FillyFriend Excel Worksheet Functions 0 November 22nd 04 09:23 PM


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