This is a simple Find and Replace code which I recorded.
I have numerous worksheets which i need to export as text files, with only specific name changes.
Is it possible to set up a macro whereby It references two cells. for find and replace?
Something like this:
Thanks for any help!
VBA Code:
Sub Find_Replace()
Range("A1:J178").Select
Selection.Replace What:="AAA", Replacement:="BBB", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False
Range("A1").Select
End Sub
I have numerous worksheets which i need to export as text files, with only specific name changes.
Is it possible to set up a macro whereby It references two cells. for find and replace?
Something like this:
Code:
....
Selection.Replace What:=" The contents of Sheet1 A1", Replacement:="The contents of Sheet1 B1", LookAt:=xlPart, _
...
Thanks for any help!