Hello All, I've spent my entire morning trying to find a way to do the following (sorry about the terrible syntax here, I'm new at this)
Sub()
For all cells in a column
If the cell contains the string "hello world" Then
Move one cell to the right and enter the letter "n"
End If
Next Cell
End Sub()
Here is the hammered script I'm trying to use. I've never done anything like this before. Feel free to send me in another direction:
Sub assetType()
For Each cell In Range("B2:B40") 'the range I'm going for is basically all of column B
If InStr(1, cell, "hello world", 1) Then
ActiveCell.Offset(0, 1).Select
ActiveCell = "n"
ActiveCell.Offset(1, -1).Select
End If
Next cell
End Sub
Sub()
For all cells in a column
If the cell contains the string "hello world" Then
Move one cell to the right and enter the letter "n"
End If
Next Cell
End Sub()
Here is the hammered script I'm trying to use. I've never done anything like this before. Feel free to send me in another direction:
Sub assetType()
For Each cell In Range("B2:B40") 'the range I'm going for is basically all of column B
If InStr(1, cell, "hello world", 1) Then
ActiveCell.Offset(0, 1).Select
ActiveCell = "n"
ActiveCell.Offset(1, -1).Select
End If
Next cell
End Sub