Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi expert,
I am looking for a VBA code with following purpose: Delete worksheets with column grand of pivot table (pivot table name unknown) = 0 AND worksheet name contain "@"? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What if I want to delete worksheet with worksheet name "@" AND contain no
number in column A (but will have text)? I use following code but doesn't work. Sub DeleteBlankSheet() For Each ws In ThisWorkbook.Worksheets If (InStr(ws.Name, "@") 0 And IsNumeric(ws.Range("A:A")) = False) Then Application.DisplayAlerts = False ws.Delete Else Cells.EntireColumn.AutoFit Application.DisplayAlerts = True End If Next ws End Sub "Angus" wrote: Hi expert, I am looking for a VBA code with following purpose: Delete worksheets with column grand of pivot table (pivot table name unknown) = 0 AND worksheet name contain "@"? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to delete a specific LegendEntry? | Charts and Charting in Excel | |||
Delete all after a specific date | Excel Discussion (Misc queries) | |||
Delete rows if specific criteria not met. | Excel Worksheet Functions | |||
I want to delete certain rows based on specific criteria | Excel Programming | |||
Cut & Paste Data into different worksheet based on specific criteria | Excel Programming |