A
Ayo
I am getting the above error when I run a code containing the segment of
codes below. The error occurs at the Selection.Replace...... line. What I am
trying to do is perform a find and replace action.
With objSht
.Range(.Cells(4, 1), .Cells(conMAX_ROWS, intLastCol)).ClearContents
.Range("A4").CopyFromRecordset rs
.Range(.Cells(4, 1), .Cells(conMAX_ROWS, intLastCol)).Select
Selection.Replace What:="False", Replacement:="No",
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="True", Replacement:="Yes",
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False
End With
codes below. The error occurs at the Selection.Replace...... line. What I am
trying to do is perform a find and replace action.
With objSht
.Range(.Cells(4, 1), .Cells(conMAX_ROWS, intLastCol)).ClearContents
.Range("A4").CopyFromRecordset rs
.Range(.Cells(4, 1), .Cells(conMAX_ROWS, intLastCol)).Select
Selection.Replace What:="False", Replacement:="No",
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="True", Replacement:="Yes",
LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
ReplaceFormat:=False
End With