I have an application that prompts users for instructions via a dialog box and listboxes, then adds a worksheet with specific formatting (a different form for each scenario).
My problem is this...
The dialog box opens when the file opens, and the user can make a selection. But...if the user wants to make another selection (i.e. create another form), they have to select a specific worksheet and click on the command button.
I have built a menu option for the users, which is preferable as it is accessible from any worksheet, but the instructions to populate the list boxes for the dialog box live on a particular worksheet, so I need to activate that sheet before the dialog box pops up. What happens is that after the form is created, the wrong worksheet is selected.
How do I select the worksheet that was just added to the file without having to specifically name it as "Sheet4" or "Sheet12", etc.?
TIA
My problem is this...
The dialog box opens when the file opens, and the user can make a selection. But...if the user wants to make another selection (i.e. create another form), they have to select a specific worksheet and click on the command button.
I have built a menu option for the users, which is preferable as it is accessible from any worksheet, but the instructions to populate the list boxes for the dialog box live on a particular worksheet, so I need to activate that sheet before the dialog box pops up. What happens is that after the form is created, the wrong worksheet is selected.
How do I select the worksheet that was just added to the file without having to specifically name it as "Sheet4" or "Sheet12", etc.?
TIA