CoastalPhil
New Member
- Joined
- Sep 8, 2011
- Messages
- 10
Hi, hope someone here can help!
I have a shared workbook which basically lists all the current orders in our factory. It's been decided that we want to be able to input more detail for each order, but without impacting on the main front sheet.
What I've been able to do so far is to write a macro that, when someone clicks on the cell containing the order number, unhides the sheet whose name is that order number, or if it doesn't exist yet, creates it.
The problem I've got is that when I create a new sheet, I want the macro to add a button to that sheet which simply runs another macro to hide the sheet, because I don't want thousands of unhidden tabs. But because the workbook is shared it won't let the first macro create a button.
Does anyone have either a way to allow the macro to create a button, or another way round this?
Thanks
Phil
I have a shared workbook which basically lists all the current orders in our factory. It's been decided that we want to be able to input more detail for each order, but without impacting on the main front sheet.
What I've been able to do so far is to write a macro that, when someone clicks on the cell containing the order number, unhides the sheet whose name is that order number, or if it doesn't exist yet, creates it.
The problem I've got is that when I create a new sheet, I want the macro to add a button to that sheet which simply runs another macro to hide the sheet, because I don't want thousands of unhidden tabs. But because the workbook is shared it won't let the first macro create a button.
Does anyone have either a way to allow the macro to create a button, or another way round this?
Thanks
Phil