Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Kill

Hi again..

I need more help. Sorry!

When the workbook is opened ( 1 sheet called VT) its saved back to the
original location with a new report number, and then saved to a temp folder
where it is while the user work on it. After the user is finished the sheet
is duplicated to a new workbook in a new location.

Everything is ok with that, but then i want to delete the workbook that is
in the temp folder by the macro in that workbook.

The temp location is:

FileSaveName = ActiveWorkbook.Path
FileSaveNameEnd = FileSaveName & "\Arkiv\"
varName = ActiveSheet.Name
varDir = FileSaveNameEnd
varYear = Format(Date, "yyyy")
varNr = ReportNumber

On Error GoTo xlErrorHandler:

ActiveSheet.SaveAs Filename:=varDir & varName & varNr & varYear

at the end of the sub i have this code:

Kill "varDir & varName & varNr & varYear"

End Sub

Is it possible to "kill" the workbook while its still running or should i
"kill" it from another location (program)?

Michael
--
Nil Satis Nisi Optimum
 
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
'Kill' solomon_monkey Excel Programming 7 January 7th 05 09:56 AM
File kill help Marino13[_6_] Excel Programming 0 February 19th 04 01:40 PM
Kill Command JamieD[_3_] Excel Programming 3 January 30th 04 01:20 PM
kill worksheets portroe Excel Programming 2 January 25th 04 11:11 PM
AutoFill KILL Frustrated[_2_] Excel Programming 1 July 29th 03 04:40 PM


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