I have two sheets that are to act as templates for new ones to be made... one called 'TemplateDataEntryJunior' and the other called 'TemplateDataEntrySenior'.
I have a userform called 'UsrFrmIndex', and a series of ComboBoxes and a CommandButton.
On pressing the CommandButton called 'EnterData', I'd like to have the User Form close (hide) and a particular Worksheet open.
The name of the worksheet won't always be the same one, but it will bear the name that is the concatenation (with no gaps) of the text displayed within each of the following ComboBoxes .. ComboBox 1, ComboBox 2, ComboBox 4, ComboBox 3 ... in that order.
So, for example, if the ComboBoxes bear the following texts ... '2010', 'Year8', 'Term1', 'Unit1' .... then the worksheet to be opened should be the one called '2010Year8Term1Unit1'.
Now, it's quite likely that this might be the first time a user has chosen this combination from the ComboBoxes, and if that is the case, the worksheet will need to be created from one of the two template worksheets mentioned earlier.
If ComboBox 2 displayes either 'Year8' or 'Year9' or 'Year10', then the new sheet should be created from the template sheet called 'TemplateDataEntryJunior', otherwise, it should be made from the other one .. 'TemplateDataEntrySenior'.
Once the sheet has been created (or if it had already existed, and the code would have to somehow determine if that was the case), the sheet should be opened and displayed and I'd like a particular cell to appear at the top of the screen. In the worksheet just opened, there will be some class codes in column C. I'd like the text that appears in cell 'Y3' of a sheet called 'DropBoxLists' to be looked for in column C of the worksheet just opened, and the first occurence of it to appear at the top of the screen.
What I have so far is ....
However, it still doesn't address the following ...
1) the 'IF' and 'ELSE' statements needed to choose whether to copy the 'TemplateDataEntryJunior' sheet or the 'TemplateDataEntrySenior' sheet.
2) how to force the first occurence of the text in column C that matches the text in 'DropBoxLists'!Y3 to be at the top of the page
Bookmarks