I am somewhat new to Excel programming, so the question may be somewhat basic. please bare with me...

I have a macro which performs certain task without any problems. At the end of the operation I copy all of the information from the worksheet which contains the macro to a different worksheet (actually csv file). However somehow the "button/graphic/shape" I assigned the macro to, copies as well and I don't want that to happen.

How do I remove it?

Thanx

TO copy I do this:

Worksheets("Sheet1").Range("A:Z").Copy Destination:=Workbooks("test.csv").Worksheets("Sheet1").Range("A:Z")