I am new to VBA and struggling to get a macro to create new worksheets (copied) from a template and named using cell values from a summary worksheet. The new worksheets will be added to the existing workbook and the cell values are from a variable named range that is made up of a concatenation of a user entered LastName, FirstName contained within a worksheet called Summary.
The idea is for a person to add a volunteer name to the summary worksheet and have the Volunteer Named worksheet created, their name added to it and have the worksheets autosort in alphabetical order. The last part I can do and I have had partial success in copying their names to the new worksheet and in creating the worksheets themselves but I have not been able to tie it all together. This is for a local non-profit that still uses manual methods and I have delivered a spreadsheet version to them that works except they are still required to create the described macro functions manually. A simple example spreadsheet is attached.
Steps
1. First Name and Last Name Entered in the Summary Worksheet Columns A & B respectively beginning with row 4. In this example the first two rows have been populated and the Volunteer worksheets created. The third volunteer is in process and their named worksheet has not been created.
2. A Warning in column D indicates "ADD WORKSHEET" to let the person know that they need to create the new volunteer worksheet
3. The blue update button is pressed starting a macro - This can be done following each new person added or batch processed
4. The macro does the following two actions:
*Copies the worksheet called "Template" and names it with the cell value in the (Summary worksheet) column C - As shown in the example the name of the third volunteer worksheet would be the cell value of cell C6. Each time the macro is run it should check to verify that a valid name (Not a Blank) exists, it should then check the existing sheets to make sure it has not been created, if it does not exist the new worksheet is created.
* The cell value in the Summary worksheet C6 gets copied into cell B1 on the newly created worksheet of the same name.
Then the macro loops to the next row and continues until it encounters a valid blank (end of the variable length list) If it can integrate the SORT VOLUNTEERS Macro that would be a bonus. The individual volunteers update their hours on their named worksheets. New Volunteers would be added as they come on board. Any help would be greatly appreciated.
Tom
Bookmarks