I wish I knew, I can't write macros that run accross an entire workbook; single sheet only
This line of code does the actual changing, and I have no idea how to make it do stuff in other sheets simultaneously.
Cells(StartNumber, "A").Value = "=max!A" & StartNumber
StartNumber is just the row number and "A" is the column letter. EndNumber is the number of times this procedure will be performed, in other words it is the total number of rows you have. The example macro only performs itself 10 times.
EDIT:
I found this command for switching sheets:
Worksheets("Sheet1").Activate
and this for looping through the entire workbook:
Bookmarks