Manoj Gaidhankar
New Member
- Joined
- May 27, 2022
- Messages
- 20
- Office Version
- 2021
- Platform
- Windows
Hi there,
If the workbook name is dynamic, I have trouble renaming it from a given path. Please find the below code if the workbook name is fixed(SampleFile) and not dynamic
If you could please help me with the above code while the workbook name is dynamic.
Thank you.
If the workbook name is dynamic, I have trouble renaming it from a given path. Please find the below code if the workbook name is fixed(SampleFile) and not dynamic
VBA Code:
Name "C:\Users\Dell\Desktop\myFolder\SampleFile.xlsx" As _
"C:\Users\Dell\Desktop\myFolder\myNewFile.xlsx"
If you could please help me with the above code while the workbook name is dynamic.
Thank you.