Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi anyone to help me on this ? I have done this macro to delete the rows where in Colomn D = Heater. Dim HTRCell As Range Dim rngHTR As Range Dim rngHTRCell As Range Do Set HTRCell = Cells(Rows.Count, "D").End(xlUp) Set rngHTR = Range("D5", HTRCell) Set rngHTRCell = rngHTR.Find("Heater") If rngHTRCell Is Nothing Then Exit Do Else Rows(rngHTRCell.Row).Delete End If Loop End Sub I would like to modify that condition as: if D=Heater (as above) *and* B = blank value the delete row D Regards Herv -- Herve_Ro ----------------------------------------------------------------------- Herve_Rob's Profile: http://www.excelforum.com/member.php...fo&userid=3520 View this thread: http://www.excelforum.com/showthread.php?threadid=55006 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |