Hello all,
I have a report I'm working on automating, right now I am working on some futureproofing. Right now I get two base files which do not have a standardized way of saving so calling it out in my current code requires me to change the workbook names every time I write the code.
Is there a way to use the input box or something else to assign the workbooks regardless of their name to a variable?
This is currently what I'm running with as I start, but its a bit too static for what I have going on...
I have a report I'm working on automating, right now I am working on some futureproofing. Right now I get two base files which do not have a standardized way of saving so calling it out in my current code requires me to change the workbook names every time I write the code.
Is there a way to use the input box or something else to assign the workbooks regardless of their name to a variable?
VBA Code:
Workbooks("LRsalesOrders.xlsm").Worksheets("salesorders_1").Activate
Workbooks("WRSalesOrders.xlsm").Worksheets("salesorders_1").Activate
Set wbCopy = Workbooks("LRsalesOrders.xlsm").Worksheets("salesorders_1")
Set wbDest = Workbooks("WRSalesOrders.xlsm").Worksheets("salesorders_1")
This is currently what I'm running with as I start, but its a bit too static for what I have going on...