Macro to rename numerous files

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,721
Office Version
  1. 2007
Platform
  1. Windows
Morning.
I was wondering if its possible to rename a bunch of pdf files that reside all in the same folder ?

Currently the files are just named like,
1.pdf
2.pdf
3.pdf

All the files have a date modified next to them for viewing purposes.

Can we run a macro that will rename these files & get the dat information from the date modified part,

So 1.pdf would then change the 1_15_07_2019
Where 1.pdf is the original file name and the 15_07_2019 is the date modified info

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What is the full path to the folder in question? Right click on a file, properties then copy the location.
 
Upvote 0
Morning,
Ive had to cancel that idea as ive notice a few which has the same date but doesnt match invoice so manually doing it.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,640
Messages
6,173,503
Members
452,517
Latest member
SoerenB

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