virgolady,
Welcome to the forum!
Attached is a modified version of your posted workbook. It contains the below macro. Your template sheet ha some fields that weren't on the 'mainworksheet' so I wasn't sure exactly where to output the information. As a result, the information is just output to where you had it in your example file (to the right of template sheet's setup).
How to use a macro:- Make a copy of the workbook the macro will be run on
- Always run new code on a workbook copy, just in case the code doesn't run smoothly
- This is especially true of any code that deletes anything
- In the copied workbook, press ALT+F11 to open the Visual Basic Editor
- Insert | Module
- Copy the provided code and paste into the module
- Close the Visual Basic Editor
- In Excel, press ALT+F8 to bring up the list of available macros to run
- Double-click the desired macro (I named this one tgr)
Bookmarks