I'm trying to compose VBA code that will create
a new workbook, and then add VBA code to the new
workbook. The "VBA code" to be added will be a
print macro that runs automatically once the new
workbook is saved and re-opened.
My question is aimed at how to add VBA code to a
different open workbook. Example : place Macro1
from workbook A into workbook B which functions
independently of workbook A. By "place", I mean
add the code, not move Macro1 over to workbook B.
And, this "VBA code placement" is to be done via
VBA and not manually, line by line. Last, the "VBA
code placement" is to be invisible to the user.