Changing File Names

  • Thread starter Thread starter Kaval
  • Start date Start date
K

Kaval

Is there a way to change the name of a file from within
an Excel VBA macro?

I have a number of pdf files in a directory that I want
to rename automatically from my excel macro.

Any ideas?

Regards, Kaval
 
Take a look at Name Statement in VBA's help.

Name "C:\my documents\myPDF1.pdf" "C:\my documents\MyPDF2.pdf"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top