Login | |
|
 |
RE: Help - 6/20/2008 9:29:49 AM
|
|
 |
|
| |
dm_4ever
Posts: 2665
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
In that case you might be able to do without the FileExists method (untested) SourceFile = "C:\Documents and Settings\My Documents\Reporting\Data\Int_Data_*.xls" DestFile = "C:\Documents and Settings\My Documents\Reporting\Data\Int_Data.xls" fso.MoveFile SourceFile, DestFile
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Help - 6/23/2008 3:05:51 AM
|
|
 |
|
| |
dm_4ever
Posts: 2665
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Loop through the files in the directory looking for the file pattern....you can use the InStr function or a regular expression....there are plenty of examples of very similar things being done.
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|