Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete the active wb

Hello all,
The last touch to my macro is to delete the log file from which I've
extracted the infromation and then saved as a text file.

Here is the command I use:

Sub DeleteOrigFile()


Workbooks(strCurrentOrigFileExt).Delete


End Sub

Do you need more info?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete the active wb

Nevermind,
I've used Ron de Bruin command and it worked perfectly

Kill strOrigDir & strCurrentOrigFileExt

thanks Ron
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
Delete cells not in Active Worksheet Ade Excel Programming 1 February 13th 07 01:08 AM
Delete all sheets except the active one...? derobin Excel Programming 1 June 22nd 06 04:02 PM
How can I delete a macro when the Delete button is not active? FCR Excel Worksheet Functions 0 March 9th 06 09:43 AM
Unable to delete Active worksheet DS Excel Programming 0 November 22nd 05 03:00 PM
Delete (Kill) Active Workbook stefan via OfficeKB.com Excel Programming 4 July 10th 05 01:53 AM


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