Hello, I'm encounter problem with VBA.
i want to select column A:D, H:J, M:P but with End(xlDown)
after that i want to find and replace the specific value in it like true to 1 and false to 0.
Dim AD As Long
Dim HJ As Long
With Sheets("Data")
AD = .Range("A2:D2").End(xlDown).Row
HJ = .Range("H2:J2").End(xlDown).Row
Selection.Replace What:="True", Replacement:="1", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
End With
any help would be really appreciated
i want to select column A:D, H:J, M:P but with End(xlDown)
after that i want to find and replace the specific value in it like true to 1 and false to 0.
Dim AD As Long
Dim HJ As Long
With Sheets("Data")
AD = .Range("A2:D2").End(xlDown).Row
HJ = .Range("H2:J2").End(xlDown).Row
Selection.Replace What:="True", Replacement:="1", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
End With
any help would be really appreciated