Hello all,
I am using a multiple worksheet workbook in Excel with a number of common commandbuttons embedded on each sheet. Is there a method of assigning the same code to the instance of that button no matter which sheet its on.
I can get the code to run in the ThisWorkbook object as a piece of code related to the ActiveSheet but not assign it to the button to work thats embedded on the various sheets.
Im trying to avoid having to add code to each Sheets object referring to each button it seems a bit longwinded to be efficient. There must be a better way.
I suppose the key problem is that they are embedded. I have thought of a new toolbar but Im designing this for a range of users and feel the button is best placed in its relevant position.
How do i do this please?
Many thanks in advance.
Neil
I am using a multiple worksheet workbook in Excel with a number of common commandbuttons embedded on each sheet. Is there a method of assigning the same code to the instance of that button no matter which sheet its on.
I can get the code to run in the ThisWorkbook object as a piece of code related to the ActiveSheet but not assign it to the button to work thats embedded on the various sheets.
Im trying to avoid having to add code to each Sheets object referring to each button it seems a bit longwinded to be efficient. There must be a better way.
I suppose the key problem is that they are embedded. I have thought of a new toolbar but Im designing this for a range of users and feel the button is best placed in its relevant position.
How do i do this please?
Many thanks in advance.
Neil