I have 2 workbooks open and I am running code from Workbook 1 to copy and paste data into Workbook 2.
The problem is Workbook 2's name changes every month and the Worksheet changes every day.
I can't use Active Workbook as I have 2 open and i am running the Macro from Workbook 1.
Set Claim_Reg = Workbooks("Workbook 2 September 2018.xlsx")
Set Daily = Claim_Reg.Worksheets("13 Sep 2018")
Set Alloc_Details = Workbooks("Workbook 1.xlsm")
Set Alloc = Alloc_Details.Worksheets("Allocation")
I would like to have a cell in the Workbook 1 on a Tab called "Parameters" that I can change every day.
Any help would be appreciated.
The problem is Workbook 2's name changes every month and the Worksheet changes every day.
I can't use Active Workbook as I have 2 open and i am running the Macro from Workbook 1.
Set Claim_Reg = Workbooks("Workbook 2 September 2018.xlsx")
Set Daily = Claim_Reg.Worksheets("13 Sep 2018")
Set Alloc_Details = Workbooks("Workbook 1.xlsm")
Set Alloc = Alloc_Details.Worksheets("Allocation")
I would like to have a cell in the Workbook 1 on a Tab called "Parameters" that I can change every day.
Any help would be appreciated.