Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Deleting a file via a macro

THANKS!!!!!

"Jim Thomlinson" wrote:

On error resume next
Kill "C:\StoreTabFile.XLS"
on error goto 0

--
HTH...

Jim Thomlinson


"Sarah at DaVita" wrote:

What do I put in there to tell the macro to continue if it cannot find the
file to kill?

"Jim Thomlinson" wrote:

You need to use the kill function...

Kill "C:\StoreTabFile.XLS"

--
HTH...

Jim Thomlinson


"Sarah at DaVita" wrote:

I need to delete a file before I start up a macro. I want to just have this
as part of the macro I run. I don't understand how to use the deleteFile
method. The file I want to delete is C:\StoreTabFile.XLS. The help screen
mentions a FileSystemObject but I do not know what that is. Can someone help
me out?

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
Deleting code from a macro (by a macro) Brettjg Excel Discussion (Misc queries) 2 May 8th 07 10:14 PM
Deleting a macro scottech Excel Discussion (Misc queries) 5 December 5th 05 05:02 PM
How to stop file open macro prompt after deleting all macros? twor57 Excel Worksheet Functions 2 November 29th 05 05:00 PM
Macro is deleting everything! vmagal1 Excel Discussion (Misc queries) 3 April 25th 05 06:05 PM
After deleting a macro, I still get the pop-up when opening file Anne Excel Worksheet Functions 2 December 8th 04 05:31 PM


All times are GMT +1. The time now is 04:06 PM.

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"