Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you need to declare the variable. Also "NewFileName.xls" should be the full
path where you are saving the workbook. dim NewBook as workbook Thisworkbook.savecopyas "NewFileName.xls" Set NewBook=workbooks("NewFileName.xls").open with newbook application.displayalerts=false .sheets("sheetName").delete application.displayalerts=true end with 'then your code for e-mailing etc |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy column header to next column, delete & delete every nth colum | New Users to Excel | |||
Clear and Copy vs Delete | Excel Discussion (Misc queries) | |||
cut and delete a row then insert and copy | New Users to Excel | |||
Copy, Paste then delete | Excel Programming | |||
Copy rows then delete them | Excel Programming |