3
I’m thinking of using Visual Basic from Excel to standardize the name of 6000 files in a given folder. These files are mixed between photos and documents, so there are a variety of extensions (DOC, DOCX, PDF, TIF, TIFF, JPG, Jpgem BMP, PNG, MSG...).
My intention would be to go through the folder and make all the file names uppercase and the extension lowercase, as in the example:
paramentro contabil.PDF
will be renamed asPARAMETRO CONTABIL.pdf
OPPO - finacials.tif
will be renamed asOPPO - FINANCIALS.tif
I imagine I’d have to use a loop For Each Next
to run the code, but do not know how to resize the variables and if there is any special function to rename files outside Excel.
What I’m trying to do is possible?
The file names are already in the spreadsheet or your macro would have to read the folder files too?
– dot.Py
No, the names are not on the spreadsheet and I didn’t even intend to copy them there. My idea was to rename the files directly in the folder, just using VBA to run the code, without using the spreadsheet.
– J. L. Muller