Y
yshridhar
Hi everybody
The following macro i recorded to replace a value in sheet1 and sheet2.
Sub replas()
Sheets(Array("Sheet1", "Sheet2")).Select
Sheets("Sheet2").Activate
Cells.Replace What:="10", Replacement:="a", LookAt:=xlWhole, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False,
ReplaceFormat:=False
Range("B1").Select
End Sub
But when i try to run it, it is replacing only in Sheet2. How to modify it?
Any suggestions. Thanks to all
With regards
Sreedhar
The following macro i recorded to replace a value in sheet1 and sheet2.
Sub replas()
Sheets(Array("Sheet1", "Sheet2")).Select
Sheets("Sheet2").Activate
Cells.Replace What:="10", Replacement:="a", LookAt:=xlWhole, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False,
ReplaceFormat:=False
Range("B1").Select
End Sub
But when i try to run it, it is replacing only in Sheet2. How to modify it?
Any suggestions. Thanks to all
With regards
Sreedhar