Right, sorry I did not get an email notification of your last post, so I missed it somehow.
Sub FindCellsPlaceText()
Dim c As Range, f, addr, offs, s
offs = -1 'this determines which cell next to the found cell
' -1 = cell to the left of found cell
' 1 = cell to the right of found cell
s = Application.InputBox("Please enter text to be placed beside found cells:", , "Prescriptions")
'the Prescriptions here now serves as the default value in the input box. remove if not needed
f = ActiveCell.Value
Set c = Cells.Find(f, lookat:=xlWhole)
If Not c Is Nothing Then
addr = c.Address
Do
c.Offset(, offs).Value = s
Set c = Cells.FindNext(c)
If c Is Nothing Then Exit Do
Loop While c.Address <> addr
End If
End Sub
Bookmarks