Home |
Search |
Today's Posts |
#6
![]() |
|||
|
|||
![]()
Starboy
Only through the use of VBA code. Option Compare Text Sub Delete_Stuff() 'using set column Dim RngCol As Range Dim i As Range Set RngCol = Range("B1", Range("B" & Rows.Count). _ End(xlUp).Address) For Each i In RngCol If i.Value = "SD" Then _ i.Offset(0, 2).ClearContents Next i End Sub Gord Dibben Excel MVP On Thu, 21 Jul 2005 07:47:09 -0700, "StarBoy2000" wrote: How do I Delete Contents of D2 if B2 = "SD". Then continue through every row in the file? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I conditionally delete rows based on cell contents? | Excel Worksheet Functions | |||
how to delete contents of cells having specific data | Excel Discussion (Misc queries) | |||
delete all the contents (sub folders and files) in the temp folder | Excel Discussion (Misc queries) | |||
Question from MOS file E03C-1-1 , Creating data and contents | Excel Discussion (Misc queries) | |||
Delete contents of unprotected cells in workbook | Excel Worksheet Functions |