Some combination using DIR to find the filename and NAME to change the name.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Ratheesh" <(E-Mail Removed)> wrote in message
news:f757cfd9-e44e-4fb3-b018-(E-Mail Removed)...
> Hi All -
>
> Please, can anyone help to write a coding for changing the filenames
> (all format) from a folder.
> i.e,
> I am having 2 files in C:\
>
> C:\test.xls
> C:\test1.pdf
>
> Can we change these file names using VBA (Excel) as -
>
> C:\changed.xls
> C:\changed1.pdf
>
> Thanks a lot in advance.
> Ratheesh