Search filename containing words

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is the thing. I have file that has to be formatted. The file is updated
occasionally because its companys pricelist. So, the name of the file will
change. The fact is that the words "Price list" is always in the name. I want
to make a search that finds the file and changes the name only to be a
"pricelist". What is the code for this?
 
Sam,

Take a look at the Dir method in VBA help. It allows selecting partial
names. Although how you will manage if there are two, I do not know.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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