Hi, I have a few questions about making some macros to generate a bunch of sheets. Help with any (or all ) of my questions would be really appreciated.
the columns in my sheet are as follows
Name | boolean1 | boolean2 | boolean3 | number remaining | list of numbers1 | list of numbers2
The name, booleans and number remaining are related, for every name i will have a value for each of the booleans in the same row and for the number remaining. The lists of numbers are unrealted to the other columns and can have a different number of rows in them.
What I want to do with those are create a new sheet for every row in the name/boolean/remaining columns. I don't know before hand how many rows there will be as the sheet is populated from java code running on a server before giving the populated sheet to the user. Each sheet would take the same name as the value in the name column (which are unique).
Depending on the values in the boolean columns different columns need to be added so those sheets. For example if boolean1 is true the new sheet will require column3&4 and if boolean2 is true ill need to add columns 5&6 etc.
To make it even more complicated some of those dynamically added columns need to be filled with drop down boxes from the list of numbers1 and list of numbers2 columns on the original sheet. And to make it slightly more complicated i would like the drop downs to only show values from those lists which have not already been selected in any of the sheets that have been created, so the selected values are unique for the entire workbook.
And one final question is there any way to limit the number of rows in the new sheets that are made. For instance in the row with name = AFakeName if the value in the number remaining column is 5 i would only like the user to be able to fill out 5 rows in the AFakeName sheet. Either not allow them to fill out more rows or display a warning if they have filled out more than 5 rows or something like that.
I know there are a lot of questions here but again if anyone can help with just part of it I would really appreciate it. While I am a computer programmer i never use excel and have never programmed in VB so I'm at a bit of a loss.
Thanks in advance,
John
Bookmarks