|
-
Sep 9th, 2004, 08:44 AM
#1
Thread Starter
Lively Member
I want to delete a workbook using code
is it possible
thanks anyway
Last edited by writelearner; Sep 22nd, 2004 at 09:51 AM.
-
Sep 9th, 2004, 09:00 AM
#2
Yes.
Kill "<filepath" <<< Deletes the file
To delete a worksheet (outside excel vb/vba)
<object refering to excel application>.<workbook>.sheets("<sheetname").delete
Inside excel vba
activesheet.delete
or
activeworkbook.sheets("<sheet name>").delete
Try one of those 
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Sep 10th, 2004, 03:40 AM
#3
Thread Starter
Lively Member
lets kill them all
thanks a lot
er maybe you know how to create a folder too
-
Sep 10th, 2004, 06:41 AM
#4
mkdir - make directory/folder
rmdir - remove folder
open - open a file or create one
close - close the channel of an open file
kill - delete file (not put in wastebasket!! - look up api to put in wastebasket)
print - prints a string to a file
line input - inputs a line from an open file
get - get byte(s) from a file
put - put byte(s) into a file
You'll have to search the help files for proper usage.
Make sure you back up everything.
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Sep 13th, 2004, 01:45 AM
#5
Thread Starter
Lively Member
solved
thanks a lot. it will be usefull
-
Sep 16th, 2004, 01:35 AM
#6
Thread Starter
Lively Member
I want to delete a workbook using code resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|