Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am copying a worksheet from an existing worksheet (in the same file) that
has been named ShtTransmissionDetail. When it is copied Excel creates a sheet named ShtTransmissionDetail1. The tab name of ShtTransmissionDetail1 is then set to the name a user has keyed in the system by the user. I am trying to check if this sheet exists, and if it does then delete it or copy over it. I have tried multiple different ways / syntax and received multiple different errors (object doesn't exist, etc...) and can't get this to work. Thanks. Sub CheckIfSheetExists() On Error Resume Next Application.DisplayAlerts = False If ShtTransmissionDetail1 Is Nothing Then Else ShtTransmissionDetail1.Delete End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check Activesheet for chart sheet or work sheet | Charts and Charting in Excel | |||
Check if the first sheet is the selected sheet | Excel Programming | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) | |||
how to use sumif function to check date in 1 sheet is < 2 sheet | Excel Worksheet Functions | |||
Check for sheet name | Excel Programming |