Hi Sebastian,
First: Where do you copy-pasted the code?
Second: Do you copy-pasted the code you provided above (with "<sheetname>" )?
Third: Do you try to compile the code?
Forth: Why do you think that after refreshing the report something will change? Have you attached the macro to the button and pressed it?
...
Vadim