Imagine I have my original workbook called 001.xlsx, in cell A1 I have the below formula already saved:
='C:\Users\mbxyz\File_001\[001.csv]Sheet1'!A1
This formula is returning the value from that specific cell, from that new workbook, from that folder.
Now I need the 001 to be a dynamic value... So if my original workbook was named 999333 and saved in a folder titled 999333 then it would update the original and existing formula to:
='C:\Users\mbxyz\File_999333\[999333.csv]Sheet1'!A1
The concept here is that I want an inexperienced staff member to download a new CSV and name it 123456.csv in its corresponding folder.
Once that action has been done a different staff member can then save a file called 123456.xlsx into the same folder. Then when they open 123456.xlsx they will activate a VBA macro from their personal macro workbook which will update the formula based on those above variables.
It would be amazing if the VBA macro only updated the variables in all of the formulas that were already in the spreadsheet, so if there were any changes to spreadsheet it would automatically apply the variable change to everything. In the above example I am only asking it to update one cell (A1) this would allow me to then update all cells and their formulas to the respective variable.
Thank you all so much for reading my question and I hope this made sense, if you have any questions please of course don't hesitate to ask
='C:\Users\mbxyz\File_001\[001.csv]Sheet1'!A1
This formula is returning the value from that specific cell, from that new workbook, from that folder.
Now I need the 001 to be a dynamic value... So if my original workbook was named 999333 and saved in a folder titled 999333 then it would update the original and existing formula to:
='C:\Users\mbxyz\File_999333\[999333.csv]Sheet1'!A1
The concept here is that I want an inexperienced staff member to download a new CSV and name it 123456.csv in its corresponding folder.
Once that action has been done a different staff member can then save a file called 123456.xlsx into the same folder. Then when they open 123456.xlsx they will activate a VBA macro from their personal macro workbook which will update the formula based on those above variables.
It would be amazing if the VBA macro only updated the variables in all of the formulas that were already in the spreadsheet, so if there were any changes to spreadsheet it would automatically apply the variable change to everything. In the above example I am only asking it to update one cell (A1) this would allow me to then update all cells and their formulas to the respective variable.
Thank you all so much for reading my question and I hope this made sense, if you have any questions please of course don't hesitate to ask