P
PRINCE21
Hi, I have this problem,
firstly i have created a macro to create a pivot table of data when
ever the macro is activated. The macro automaticaly creates a new sheet
e.g. sheet10 to represent this data.
On that new sheet the macro has created i wanted to create anothe
rmacro that makes the sheet look tidy and nice. This involves copying
data from a different sheet into it.
The problem is i made this macro but there is an error. Say i delete
the sheet that is "Sheet10" and create a new one, the macro that i have
created does not work, this is because it cannot find sheet 10.
How can i make the macro comaptible with all sheets so no matter what
the sheet is called it still works on that selected sheet from which it
is activated.
Is there something on the lines of this, please help.
firstly i have created a macro to create a pivot table of data when
ever the macro is activated. The macro automaticaly creates a new sheet
e.g. sheet10 to represent this data.
On that new sheet the macro has created i wanted to create anothe
rmacro that makes the sheet look tidy and nice. This involves copying
data from a different sheet into it.
The problem is i made this macro but there is an error. Say i delete
the sheet that is "Sheet10" and create a new one, the macro that i have
created does not work, this is because it cannot find sheet 10.
How can i make the macro comaptible with all sheets so no matter what
the sheet is called it still works on that selected sheet from which it
is activated.
Is there something on the lines of this, please help.
