Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

Deleting and Excel workbook from with in VBA.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Databaser - 09 Sep 2005 01:26 GMT
I need to know the VBA code for deleting an Excel workbook.

Problem:  I create a Excel workbook to attacht to an email.  This works
great.  However, when I try to overwrite it with the next workbook it is hit
of miss if it will do it.  So, I want to delete the workbook after I have
sent it out and before the next workbook is created.  Can anyone help?
Ken Snell [MVP] - 09 Sep 2005 01:39 GMT
Kill "C:\MyFolder\MyFilename.xls"

Signature

       Ken Snell
<MS ACCESS MVP>

>I need to know the VBA code for deleting an Excel workbook.
>
[quoted text clipped - 3 lines]
> of miss if it will do it.  So, I want to delete the workbook after I have
> sent it out and before the next workbook is created.  Can anyone help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.