I am having the same problem. I am copying the pasting the data exactly as you have written above.
I think I may be entering this in to VBA incorrectly as I have zero understanding of how the code is derived.
Can you confirm how you would actually add this to you spreadsheet.
Currently I am pressing alt with f11, pasting:
Function PrevSheet(rng As Range)
Application.Volatile
PrevSheet = rng.Parent.Previous.Range(rg.Address)
End Function
into the box on the right and I am just getting the result NAME?, when I enter =prevsheet(a2) into the cell on the next worksheet.
All I need to do is at the start date for the beginning of the week on each sheet. IE Week1 31/12/12, week 2, 07/01/13, week 3, 14/01/13 etc.
I need to ref the previous sheet then just add 7, but don't fancy manually changning the worksheet number for 52 weeks.
I am positive I am missing out an obvious step.
Thanks