ThrottleWorks
Excel Ninja
Hi, I have a problem regarding defining a file name.
I have a macro, this macro captures data from another file.
File names are as below.
Macro file - ABC_Volume_Macro.xlsm
File from which I am capturing data - Repository.xlsm
Whenever I refer to file, for example macro file, I write code such as
Workbooks.(“ ABC_Volume_Macro.xlsm”).worksheets (“Working”).range(“a1”).value = from_date
Is there any to shorten “Workbooks.(“ ABC_Volume_Macro.xlsm”)”.
Can I define this name at the start of the code & then just use the abbreviated name in the code.
Can anyone help me in this please.
I have a macro, this macro captures data from another file.
File names are as below.
Macro file - ABC_Volume_Macro.xlsm
File from which I am capturing data - Repository.xlsm
Whenever I refer to file, for example macro file, I write code such as
Workbooks.(“ ABC_Volume_Macro.xlsm”).worksheets (“Working”).range(“a1”).value = from_date
Is there any to shorten “Workbooks.(“ ABC_Volume_Macro.xlsm”)”.
Can I define this name at the start of the code & then just use the abbreviated name in the code.
Can anyone help me in this please.