ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Problem with Kill Syntax! (https://www.excelbanter.com/excel-discussion-misc-queries/447003-problem-kill-syntax.html)

JHB

Problem with Kill Syntax!
 
I am using excel 2000, and have run into a problem with the kill
process.

I have a path and file name that is constructed by concatenating a
number of fields. The intent is to use this constructed path and file
name to open a spreadsheet, copy selected parts of it, close it and
then kill it.

The opening process works just fine, and I can transfer the data and
close it BUT when I come to killing it it just does not seem to work.
I know its accurate because the other functions are successful.


I have the file and path name called TRUEFILE, and have tried all the
following:

Kill TRUFILE
KillFile TRUEFILE
KillFile=TRUFILE
KillFile=(TRUEFILE)

and none of them have the desired effect. Help please with this simple
one!

Thanks

John Baker

Claus Busch

Problem with Kill Syntax!
 
Hi John,

Am Fri, 31 Aug 2012 13:23:11 -0700 (PDT) schrieb JHB:

I have the file and path name called TRUEFILE, and have tried all the
following:

Kill TRUFILE
KillFile TRUEFILE
KillFile=TRUFILE
KillFile=(TRUEFILE)


try:
Kill (TRUEFILE)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


All times are GMT +1. The time now is 03:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com