Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Move file to a different folder

Erik:
That worked great. Thanks for the help.
Ernie

"E Oveson" wrote:

The simplest way would probably be to just copy it, and then delete it from
original location:

FileCopy "i:\defective reports\" & SheetFileName, "i:\defective
reports\processed\" & SheetFileName
Kill "i:\defective reports\" & SheetFileName

-Erik

"ebferro" wrote in message
...
I've got a short vba program that extracts data from a spreadsheet,
massages
the data and then puts the data into a comma delimited text file. When
I'm
done with the spreadsheet, I'd like to move it from the i:\defective
reports\
subdirectory to the i:\defective reports\processed\ subdirectory so that I
don't put the same data into my text file twice. Could anyone show me how
to
do this? The spreadsheet file name variable is called SheetFileName.
TIA.




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
VBA to move an excel file to another folder tvt Excel Discussion (Misc queries) 3 December 19th 13 02:53 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
Move them to different folder Prasad Vanka Excel Programming 2 May 21st 04 01:50 PM
Create Folder and Text File in folder Todd Huttentsine Excel Programming 2 April 29th 04 03:41 PM
Move file to different folder Don Guillett[_4_] Excel Programming 4 August 29th 03 07:35 PM


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