So I know this sounds crazy, but can VBA inject VBA into a sheet?
Sauce: I am creating a workbook that will bea collection of training data. The first sheet will be a data entry sheet so that all of the stuff put in this sheet will be formatted the same. There will be a submit button at the bottom that will create a new sheet based on the data entered. It will then hide this new sheet. The will also be a sheet that will act as a table of contents, and a hyperlink will be created on that sheet. When the hyperlink is clicked, it will unhide the associated sheet (the one that was created) and take the user to it. On that sheet will be a hyperlink that will take the user back to the index sheet and hide the sheet the user just came from.
From what I have read on the interwebs elsewhere, in order to have a hyperlink hide a sheet when clicked, that sheet will have to have VBA in it that activates upon clicking the hyperlink. As this workbook will be used to create a huge library (which is why I am wanting to hide the sheets that get created), it will be a pain to go into every sheet as it gets created to add the hide on hyperlink click VBA, so I am wondering if there is some way in the coding that will create the sheet can also write the hiding VBA as well? I am hoping to make this workbook as low maintenance as possible.
Or if anyone has a better idea on how to auto hide a sheet while taking the user back to the index sheet? Thanks everyone!
Sauce: I am creating a workbook that will bea collection of training data. The first sheet will be a data entry sheet so that all of the stuff put in this sheet will be formatted the same. There will be a submit button at the bottom that will create a new sheet based on the data entered. It will then hide this new sheet. The will also be a sheet that will act as a table of contents, and a hyperlink will be created on that sheet. When the hyperlink is clicked, it will unhide the associated sheet (the one that was created) and take the user to it. On that sheet will be a hyperlink that will take the user back to the index sheet and hide the sheet the user just came from.
From what I have read on the interwebs elsewhere, in order to have a hyperlink hide a sheet when clicked, that sheet will have to have VBA in it that activates upon clicking the hyperlink. As this workbook will be used to create a huge library (which is why I am wanting to hide the sheets that get created), it will be a pain to go into every sheet as it gets created to add the hide on hyperlink click VBA, so I am wondering if there is some way in the coding that will create the sheet can also write the hiding VBA as well? I am hoping to make this workbook as low maintenance as possible.
Or if anyone has a better idea on how to auto hide a sheet while taking the user back to the index sheet? Thanks everyone!