berty2000
Board Regular
- Joined
- Mar 29, 2011
- Messages
- 71
Hi guys
Trying to make a macro that will search a column for names and when it finds them paste the word "Task Complete" in the cells next to the names.
Any blank cells leave blank.
My thinking was add a formula in the column M4:M200 that would search for any entry in the column and if found in column N4:N200 enter the word next to it.
This is what iv'e played around with but can't get right
Sub checknames()
' Select all blank cells in range M4:M200
Range("M4:M200").SpecialCells(xlCellTypeBlanks).Select
' Enter formula in these blank cells
Selection.Formula = "=IF(ISERROR(SEARCH("",M4,1)),"","Task Complete ")"
End Sub
Trying to make a macro that will search a column for names and when it finds them paste the word "Task Complete" in the cells next to the names.
Any blank cells leave blank.
My thinking was add a formula in the column M4:M200 that would search for any entry in the column and if found in column N4:N200 enter the word next to it.
This is what iv'e played around with but can't get right
Sub checknames()
' Select all blank cells in range M4:M200
Range("M4:M200").SpecialCells(xlCellTypeBlanks).Select
' Enter formula in these blank cells
Selection.Formula = "=IF(ISERROR(SEARCH("",M4,1)),"","Task Complete ")"
End Sub