rename folder with files vba

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
737
Office Version
  1. 365
  2. 2010
from
E:\00 2024 Regulatory Filing\00-May 2024

to
E:\00 2024 Regulatory Filing\05-May 2024
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
VBA Code:
    Name "E:\00 2024 Regulatory Filing\00-May 2024" As "E:\00 2024 Regulatory Filing\05-May 2024"
 
Upvote 0
ty..just to confirm...
will this work with original folder having files ?

Why not just try it and see for yourself?

Just be aware that I don't think you can change the folder name if any of the files in that folder are open at the time you are running that code.
I think everyone needs to be out of those files in order to change the folder name.
 
Upvote 0
Why not just try it and see for yourself?

Just be aware that I don't think you can change the folder name if any of the files in that folder are open at the time you are running that code.
I think everyone needs to be out of those files in order to change the folder name.not at

not at my PC rn lol
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,600
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top