Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how can i have a macro check to see if there is a value in
column b if there is to move on to next cell in column b if not to delete the corresponding cells in column a and d? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how can i have a macro check to see if there is a value in
column b if there is to move on to next cell in column b if not to delete the corresponding cells in column a and d? try this: Dim rngArea As Range Set rngArea = Worksheets(1).Columns("B").SpecialCells(xlCellType Blanks) Application.Union(rngArea.Offset(0, -1), rngArea.Offset(0, 2)).Value = "" -- Mit freundlichen Grüssen Melanie Breden - Microsoft MVP für Excel - http://excel.codebooks.de (Das Excel-VBA Codebook) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete the test values, but do not delete the formulas | Excel Discussion (Misc queries) | |||
How to Delete a Range in Closed Workbook (to Replace Delete Query) | Excel Discussion (Misc queries) | |||
How do i delete a macro in Excel 2003 when delete isn't highlight | Excel Discussion (Misc queries) | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions |