Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I have a formula to delete cells that have a zero value which is shown below Dim cell As Range For Each cell In Cells.SpecialCells(xlCellTypeConstants, xlNumbers) If cell.Value = 0 Then cell.Delete Next cell That works fine but im trying to delete the whole line and not just the cells that have zero in them. I have a workbook which is set up as follows outstanding paid paid paid outstanding item a 300.00 100.00 200.00 0.00 item b 40.00 5.00 35.00 Item c 33.00 8.00 25.00 Im trying to delete the whole line if the outstanding amount shown at the end of the line is zero. i.e the top line (the line horizontally from item a to 0.00) Would I be able to set it into a macro that deletes the zero amounts first and then transfer all the other data which has amount other than zero into a new workbook. -- tweacle |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete blank rows Macro | Excel Discussion (Misc queries) | |||
Macro Help In Excel | Excel Discussion (Misc queries) | |||
Passing selected workbook name and values to a macro | Excel Worksheet Functions | |||
delete personal macro | Excel Discussion (Misc queries) | |||
delete row contains specific word in an macro | Excel Discussion (Misc queries) |