Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro (see below) which is designed (by someone else) to hide rows
that do not have any data in the current cell. Instead of hiding these rows, I would like the macro to delete them. I believe I have to substitute the lines which change the row height to "0" with something else. Does anyone know the correct syntax for a macro to delete rows? This is using Excel 2000. Any help will be greatly appreciated. HideRows (H) =ECHO(FALSE) =ACTIVATE("Voucher") =FORMULA.GOTO("Top_Item") =ACTIVATE("Input") =FORMULA.GOTO("Hide_items") =SET.NAME("ItemNo",1) =FOR("HIDE",1,2625) = SELECT("RC") = IF(OR(GET.FORMULA("RC")="0",GET.FORMULA("RC")="",D EREF(SELECTION())=0)) = ROW.HEIGHT(0) = ACTIVATE("Voucher") = ROW.HEIGHT(0) = ELSE() = ACTIVATE("Voucher") = FORMULA(ItemNo) = SET.NAME("ItemNo", ItemNo+1) = END.IF() = ACTIVATE("Voucher") = SELECT("R[+1]C") = ACTIVATE("Input") = HIDE=HIDE+1 = SELECT("R[+1]C") =NEXT() =FORMULA.GOTO("R1C1") =COLUMN.WIDTH(0) =FORMULA.GOTO("R1C[+1]") =ACTIVATE("voucher") =FORMULA.GOTO("top_item") =ECHO(TRUE) =RETURN() -- LPS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help editing a macro | Excel Discussion (Misc queries) | |||
Editing a macro | Excel Discussion (Misc queries) | |||
Editing Macro | Excel Discussion (Misc queries) | |||
Problem Editing Macro in Shared Excel File | Excel Discussion (Misc queries) | |||
Problem Editing Macro in Shared Excel File | Excel Discussion (Misc queries) |