Hera são 4 maneiras diferentes de substituir 0
por 1
. Mas apenas dois são utilizáveis no seu caso.
-
WorksheetFunction.Replace( old_text, start, number_of_chars, new_text )
-
WorksheetFunction.Substitute ()
WorksheetFunction.Substitute(text, oldtext, newtext, [nth_appearance] )
-
Replace( Expression, Find, Replace, [Start, [Count, [Compare]]] )
-
Range.Replace( What, Replacement, [LookAt], [SearchOrder], [MatchCase], [SearchFormat], [ReplaceFormat] )
Input VBA code Output