Replace information in all sheets of the workbook : Replace « Forms « VBA / Excel / Access / Word






Replace information in all sheets of the workbook

 

Sub ChgInfo()
    Dim Sht As Worksheet
    For Each Sht In Worksheets
        Sht.Cells.Replace What:="old", Replacement:="new", LookAt:=xlPart, MatchCase:=False
    Next
End Sub

 








Related examples in the same category

1.Replacing with the Replace Method
2.Using Replace to Replace Formatting