Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete a workbook with a macro

Status
Not open for further replies.

4281967

MIS
Oct 14, 2005
74
US
I have a macro that takes data from several workbooks and combines it into one (new) workbook. Since the old ones are no longer needed, it would be nice if I could have some code delete them for me. Is this possible?

Thanks
 
How about simply tring to record the action you want to take?

this will do it, but it prompts you to make sure you want to delete the sheet.
Code:
Sheets("Sheetname").Delete


Kevin Petursson
--
"Everyone says quotable things everyday, but their not famous... so nobody cares."... Some Person
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top