Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am creating a new sheet in a macro and then renaming it to Test with
the following lines: Sheets.Add ActiveSheet.Name = "Test" However, there might already be a sheet called Test in the workbook from an earlier (failed) run of the macro. How can I detect if that sheet exists and delete it if it does exist before the above lines of code? Many thanks, Pete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If sheet exists and it is named run this code | Excel Programming | |||
If sheet exists, delete | Excel Programming | |||
Delete broken named ranges in sheet | Excel Programming | |||
How do I delete all named ranges in a sheet at one time? | Excel Worksheet Functions | |||
how to tell if a named range exists | Excel Programming |