Hoping to get some direction on the following:
My Set Up:
Home page is a summary page of all sheets in my workbook. All other sheets are hidden. Every time a user adds a new sheet to my work book (via macro) the summary page updates (via macro) with certain information from that newly added sheet.
What I would like to have happen is for every new sheet added, a command button also gets added to the summary page, on the next available row in the summary table, that would then take the user to that new sheet.
I have some code for adding command buttons but I have 2 problmes with it:
2. How do I get excel to reference the name of the sheet that was just added by my user so it can then assign a "go to sheet" macro to the newly added command button?
Thanks for your time and assistance!
My Set Up:
Home page is a summary page of all sheets in my workbook. All other sheets are hidden. Every time a user adds a new sheet to my work book (via macro) the summary page updates (via macro) with certain information from that newly added sheet.
What I would like to have happen is for every new sheet added, a command button also gets added to the summary page, on the next available row in the summary table, that would then take the user to that new sheet.
I have some code for adding command buttons but I have 2 problmes with it:
1. I'm not sure how to make it dynamic so that a button gets added to the next row in my summary table. In this case it would be in cell A everytime it's added.ActiveSheet.Buttons.Add(button coordinates).OnAction = "macro name"
2. How do I get excel to reference the name of the sheet that was just added by my user so it can then assign a "go to sheet" macro to the newly added command button?
Thanks for your time and assistance!