Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't use Excel programming very much so an unfamiliar with out to run the
below listed macro. I have 3 sheets to run this on and would like to automate this instead of running it manually. How do I make this work for each sheet, rather than just the active sheet? Dim rg As Range, rgBlank As Range '-------- CHANGE HERE ----------- Set rg = ActiveSheet.Range("A:A") '-------------------------------- 'get blank cells from rg On Error Resume Next Set rgBlank = rg.SpecialCells(xlCellTypeBlanks) On Error GoTo 0 If rgBlank Is Nothing Then 'no blank cell MsgBox "No Blank cells found" Else 'else delete entire rows rgBlank.EntireRow.Delete End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need macro to copy active sheet to a new workbook | Excel Programming | |||
assign macro to active workbook?? | Excel Programming | |||
How can i attach active workbook to email- please see the macro | Excel Programming | |||
Macro: Exit active workbook without save? | Excel Worksheet Functions | |||
run a macro on an in-active workbook | Excel Programming |