Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a routine which deletes worksheets in a workbook. When I delete the
worksheets, I want to ensure that the custom views on those sheets are deleted as well. Is there a way when deleting a sheet to test to see if it has a custom view on that sheet? Does the view have a property that identifies the sheet its on? If not, is there a way to test to see if a custom view is still relevant? I know that when I delete sheets, the views stay behind. If you try to manually select the view an error message is NOT generated. As such its not obvious that it no longer is relevant. The Show method below would not generate an error message in VBA if the view it is attempting to show was missing. ActiveWorkbook.CustomViews("Condensed Consolidated Summary 1").Show Thanks EM |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting All Custom Cell Styles | Excel Discussion (Misc queries) | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
deleting values in a worksheet without deleting the formulas | Excel Worksheet Functions | |||
Deleting Hyphens or Dashes from multiple cells without deleting the remaining content | Excel Programming | |||
Using BeforeClose for deleting a custom toolbar | Excel Programming |