A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
If there are multiple changes, it doesn't find and change them.
I didn't realize that you were doing multiple changes but no problem. Try the following where it loops until the value is no longer found in the selection.
If you have very many changes to make in a large amount of data then the method is certainly slower but unfortunately we have to run with the work around until such time as Microsoft addresses the issue (if they ever do so).
Sub FindAndReplaceTextNumbers()
Dim TaskID As String
Dim NewTaskID As String
Dim rngToFind As Range
TaskID = Range("A9").Value 'Used for testing
NewTaskID = "01012" 'Used for testing
Columns("A:A").Select 'Used for testing
Set rngToFind = Selection.Find(What:=TaskID, _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False, _
SearchFormat:=False)
'Test if found because if not found then code will error
If Not rngToFind Is Nothing Then 'Not nothing then is something so found
Do
rngToFind.Value = NewTaskID
Set rngToFind = Selection.FindNext(rngToFind)
Loop While Not rngToFind Is Nothing
End If
End Sub