esquiresurf
New Member
- Joined
- Mar 24, 2015
- Messages
- 9
Hi
The below module will open an .xlsx workbook within a given path directory.
FYI, I have used Public Constants to give a value to theSource_Template_Folder_Path and Source_Template_Name
In another module within the same macro I would like to refer back to thisnewly opened .xlsx workbook, for copying data from or pasting data to.
Question:
How do assign a "name" to this newly opened work so I can refer to itin another module?
I would like to avoid using ActiveWorkbook or similar if possible.
If further information is required let me know.
Thank you
The below module will open an .xlsx workbook within a given path directory.
FYI, I have used Public Constants to give a value to theSource_Template_Folder_Path and Source_Template_Name
Code:
Dim Template_name As String
Template_name = Source_Template_Folder_Path & Source_Template_Name &".xlsx"
Workbooks.Open (Template_name), ReadOnly:=False
In another module within the same macro I would like to refer back to thisnewly opened .xlsx workbook, for copying data from or pasting data to.
Question:
How do assign a "name" to this newly opened work so I can refer to itin another module?
I would like to avoid using ActiveWorkbook or similar if possible.
If further information is required let me know.
Thank you