From Mallycat's code,
below the line "Dim myRange As Range"
insert line "For Each Worksheet In Worksheets"
change the line "Set myRange = Sheets("sheet1").Range("B6:I45")"
to line "Set myRange = Worksheet.Range("B6:I45")"
below the line "Next cell"
insert line "Next Worksheet"
That should do it for every sheet.
-Simon
"beatrice25" wrote:
Hi Everyone,
I have a sheet (actually hundreds of sheets)with data in B6 to I45,
inside it i need to make lots of replacements, e.g.
0 becomes DSR0
1 becomes DSR1
C1,C2,C3,C4,C5 become CTRL
How can I use a macro to do this and be able to add lines to it if i
want to do more replacements?
Also some cells make contain 10 or 11 for example, I do not want the
macro to change these just because they have a 0 or a 1 in them?
Any ideas?
I am still searching old questions in the forum to find the answer
Thanks for any help
B
--
beatrice25
------------------------------------------------------------------------
beatrice25's Profile: http://www.excelforum.com/member.php...o&userid=34505
View this thread: http://www.excelforum.com/showthread...hreadid=553813