Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Does a worksheet exist
How can I tell if a particular sheet exists in a workbook
If it exists I want to delete it and create a new sheet with the same name Kaval |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Does a worksheet exist
I guess I could run a little routine to scroll through each sheet in the workbpok and see if I get a match, but I was hoping for a one line solution if possibl
Kaval |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Does a worksheet exist
One way
Sub DelSheet() Application.DisplayAlerts = False On Error Resume Next Sheets("sheet2").Delete On Error GoTo 0 Application.DisplayAlerts = False Sheets.Add ActiveSheet.Name = "SHEET2" End Su -- Message posted from http://www.ExcelForum.com |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Does a worksheet exist
Here is my previous posted code all done on one line
Application.DisplayAlerts = False: On Error Resume Next: Sheets("sheet2").Delete: On Error GoTo 0: Application.DisplayAlerts = False: Sheets.Add: ActiveSheet.Name = "SHEET2" --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Does worksheet exist | Excel Discussion (Misc queries) | |||
Does Worksheet Exist | Excel Discussion (Misc queries) | |||
Refrencing another cell in a worksheet that "could" exist | Excel Worksheet Functions | |||
Does worksheet exist | Excel Programming | |||
check if a worksheet exist - VBA | Excel Programming |