Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Macro for sheet delete, very easy
my code is: Sheets("Sheet 1 (2)").Select ActiveWindow.SelectedSheets.Delete How can i hace it delete the seleted sheet, not always 'Sheet 1 (2)'? -- comotoman ------------------------------------------------------------------------ comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292 View this thread: http://www.excelforum.com/showthread...hreadid=475211 |
#2
|
|||
|
|||
This code deletes the active sheet, with no prompt for confirmation:
Application.DisplayAlerts = False ActiveWindow.SelectedSheets.Delete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Error when trying to delete a macro... | Excel Discussion (Misc queries) | |||
Can't find macro in an Excel file to delete it | Excel Discussion (Misc queries) | |||
Macro data selection line delete | Excel Discussion (Misc queries) | |||
Macro to delete first line of 200+ files | Excel Discussion (Misc queries) | |||
delete personal macro | Excel Discussion (Misc queries) |