excel macro help

Currently reading:
excel macro help

Joined
Jun 3, 2004
Messages
7,910
Points
1,431
Location
Ooop North
I used to be so good at this but cant remember anything

I have an excel workbook im making, it has 24 worksheets in it. Im adding a button to each sheet that returns the main worksheet, but i want to hide the current sheet as it moves back to the main sheet and i dont want to have to make 24 slightly different macros to do this, is 1 macro than can do this no matter what worksheet its applied to?

thanks
 
Should just be able to copy/paste the button and related function (macro) onto each sheet.

Can't remember the macro code, but it really isn't difficult to set up.
 
i know how to do one macro for one sheet, but when i assign the macro onto a button on the other sheets, i get errors coz it names the original sheet... which is hidden.

is what your saying create the macro for one sheet then copy and paste the button once assigned the macro onto the other sheets it'll automatically change the sheet named in the macro? i know it can do this with formula
 
Back
Top