Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm a newbie and as having trouble grasping something. I'm running code to delete all empty sheets in a workbook. The code I have found begins with Dim sh as Worksheets For Each sh in ThisWorkbook.Worksheets If Application.WorksheetFunction.Counta(sh.cells) = 0 Then application.DisplayAlerts = False sh.Delete Application.DisplayAlerts=True End if Next My questions is: What does the sh as Worksheet mean in plain English? I assume the Displayalerts means don't show me the confirmation message to delete sheets Thanks! -- Thanks! Dee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet | Excel Worksheet Functions | |||
I want in one worksheet to relatively link to/reference cells in another without changing the format of the current worksheet. | Excel Discussion (Misc queries) | |||
copy range on every worksheet (diff names) to a master worksheet (to be created) | Excel Programming | |||
Attaching a JET database to an Excel Worksheet OR storing large binary data in a worksheet | Excel Programming |