Macro to rename numerous files

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,832
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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

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