Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Lots of people who have this kind of useful macro create a workbook named
personal.xls (.xlsm). Then they store that workbook in their XLStart folder. That way, excel will open this macro workbook whenever excel opens. In fact, most people have this personal.xls hidden -- so it doesn't get in the way of real work. Then you can just open any workbook, hit alt-f8 (tools|macro|macros in xl2003 menus) select the macro and run it. yepiknowiam wrote: Everything works fine, but have another question. If I open up a different workbook, the macro is not listed. Is there a way to save it or import it so any workbook I open up, I will have access to it? "Gord Dibben" wrote: Sub DeleteEmptyRows() ''only if entire row is blank LastRow = ActiveSheet.UsedRange.Row - 1 + _ ActiveSheet.UsedRange.Rows.Count Application.ScreenUpdating = False For R = LastRow To 1 Step -1 If Application.CountA(Rows(R)) = 0 Then Rows(R).Delete End If Next R End Sub Gord Dibben MS Excel MVP On Thu, 21 Aug 2008 19:57:02 -0700, yepiknowiam wrote: I have been looking for a macro that will delete any empty row. This spreadsheet I work with generally has 3-4 empty rows after each section. It doesn't have to be complex. Thanks. -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hpw do I delete multiple empty rows found between filled rows? | Excel Worksheet Functions | |||
Delete empty rows with macro by John Walkenbach | Excel Programming | |||
Delete Rows with Empty Cells with empty column 1 | Excel Programming | |||
How do I write a macro to delete all rows from the first empty ro. | Excel Programming | |||
Cut and Paste macro based on criteria then delete empty rows | Excel Programming |