Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Deleting workbook

I'd have to do some digging to verify this, but can you
write: Workbooks("workbookname").Delete
-----Original Message-----
Hello
Is it possible to delete a workbook in a macro?
I would like to delete old workbook in first line of code

so when the macro uses the save as command with this name
later in code it does not produce prompt to replace
ActiveWorkbook.SaveAs Filename:="R:\PROTEUSIMP.xls",

FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",

ReadOnlyRecommended:=False _
, CreateBackup:=False
or is there away to enter true to replace
when I tried with recordmacro nothing was recorded
thanks
Tina

.

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
deleting workbook saqib New Users to Excel 1 June 24th 08 03:22 PM
Deleting Workbook from others Julia Excel Worksheet Functions 2 April 22nd 08 06:34 PM
Deleting workbook Tom Ogilvy Excel Programming 0 July 14th 04 03:50 PM
Deleting a Column from a Workbook Terry Excel Programming 6 June 21st 04 11:34 PM
Deleting Workbook Fred[_16_] Excel Programming 2 November 26th 03 06:33 PM


All times are GMT +1. The time now is 04:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"