Current location - Loan Platform Complete Network - Big data management - In an excel datasheet, use VBA to change the value of column A which is not 1 to 2. It is required to be done in a single statement.
In an excel datasheet, use VBA to change the value of column A which is not 1 to 2. It is required to be done in a single statement.
Columns("a:a").Replace What:="1", Replacement:="2", LookAt:=xlPart, SearchOrder _

:=xlByRows, MatchCase:=False, SearchFormat:= False, ReplaceFormat:=False

It's the code that replaces the 1 in column A with a 2.

I hope this helps.

I hope it helps you.