Do you need the worksheet from the template, or more just the SAP toolbar? If the latter, I'd save your template as an xla (xl add-in), and then you can activate the add-in under Excel options.
View attachment 8718
Then, your add-in would be available from
any workbook that you have open. I have a couple of add-ins that I use this for.
Or, another option is to put all the code from the template into your Personal workbook. The Personal workbook gets loaded everytime and runs in the background, and can hold lots of your favorite code.
In direct answer, there is no easy way to move the coding from one workbook into another. You would need to go into the VBE and move it from there. Or, move fileB's worksheets into the template.