Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
don don is offline
external usenet poster
 
Posts: 15
Default DeleteFile Method

I have a db IV file passed to Excel from Approach.
I need to delete the file once I have copied the data into excel.

Excel Help says:

object.DeleteFile filespec[, force]

object Required. Always the name of a FileSystemObject.

I have no idea what the FileSystemObject would be.

Any help would be appreciated.

Thanks
Don
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default DeleteFile Method

Don,

You got into the help file for the Microsoft Scripting Runtime.
Its script works seamlessly with Excel.
However, using VBA the "Kill" statement will remove a file.
It cannot be used to delete an open file.
The syntax is very simple...

Kill "MyFileName.xls"

Note: do not use a wild card character in the file name as you
could delete every xls file in the folder.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"don"
wrote in message
I have a db IV file passed to Excel from Approach.
I need to delete the file once I have copied the data into excel.

Excel Help says:

object.DeleteFile filespec[, force]

object Required. Always the name of a FileSystemObject.

I have no idea what the FileSystemObject would be.

Any help would be appreciated.

Thanks
Don
  #3   Report Post  
Posted to microsoft.public.excel.programming
don don is offline
external usenet poster
 
Posts: 15
Default DeleteFile Method

Thanks jim, works great.
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
Please post this thread a correct full method, method about Nast Runsome New Users to Excel 8 February 25th 08 03:29 PM
Please post this thread a complete correct method, method about te Nast Runsome New Users to Excel 0 February 23rd 08 09:42 PM
Another Method or 2? JMay Excel Discussion (Misc queries) 9 February 9th 07 08:11 PM
GetObject method not work after Call Shell Method ben Excel Programming 8 February 21st 06 03:45 PM
Why QUIT method doesn't work after COPY method? surotkin Excel Programming 3 October 26th 05 04:32 PM


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