eric86vabeach
New Member
- Joined
- Jan 29, 2014
- Messages
- 23
i want to type something in "B1" and then if it is in sheet 1,2,5 it will get delete and then adds the word "changed" the next cell to the right in "Column B"
Private Sub CommandButton2_Click()
For Each cell In Range(Cells(1, "A"), Cells(Cells(Rows.Count, "A").End(xlUp).Row, "A"))
' i want to replace "B1" with what is typed in "B1" also how do i do this in sheet1 , sheet2 and sheet5 only
If cell.Value Like "B1" Then Rows(cell.Row).ClearContents
Next cell
End Sub
Private Sub CommandButton2_Click()
For Each cell In Range(Cells(1, "A"), Cells(Cells(Rows.Count, "A").End(xlUp).Row, "A"))
' i want to replace "B1" with what is typed in "B1" also how do i do this in sheet1 , sheet2 and sheet5 only
If cell.Value Like "B1" Then Rows(cell.Row).ClearContents
Next cell
End Sub