+ Reply to Thread
Results 1 to 4 of 4

Rename Multiple PDF Files using Excel VBA

  1. #1
    Registered User
    Join Date
    03-06-2018
    Location
    new york
    MS-Off Ver
    2010
    Posts
    2

    Question Rename Multiple PDF Files using Excel VBA

    I have a compressed file consisting of 900+ PDF files. I have an excel reference file that has column A (account #), column B (brokerage #), column C (Entity). Currently all these pdfs are names with the account Number in their title. But I want to rename them to their brokerage # and group the accounts in folders separated by their entities (4 different types).

    Is there a macro function to rename a list of pdf's using the account # - replace it with the corresponding brokerage number and group the pdfs in their respective entity folders. I can unzip the original folder before writing any macro but preferably dont want to.

    Any help is appreciated.
    Thanks

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Rename Multiple PDF Files using Excel VBA

    need the filename format of the existing pdf,
    and how you want it to look when renamed.

  3. #3
    Registered User
    Join Date
    03-06-2018
    Location
    new york
    MS-Off Ver
    2010
    Posts
    2

    Re: Rename Multiple PDF Files using Excel VBA

    Current PDF name: TaxForm_1099Comp_2017_1815_"1234567"
    New PDF Name: GSB="0000000000"+CSP="TOPACCOUNT"+DOC=M1+TT=12312016+D=2016_PPP1099PAIRED
    The values in "" in the current PDF name are dynamic based on column A in the reference file
    The values in "" in the new PDF name are dynamic based on columns B and C in the reference file

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Rename Multiple PDF Files using Excel VBA

    you will need to adjust the code to fit you.
    in make new filename:
    Please Login or Register  to view this content.
    change the layout of your target filename.


    change:
    Sheets("Accounts").Activate
    to the name of your excel sheetname with the accounts

    in RenameFiles(),
    change the Folder,"c:\temp\", where your pdfs are located

    then run RenameFiles

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Rename Multiple PDF files in a folder per the list in Excel spreadsheet
    By vmanil75 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2017, 09:40 AM
  2. [SOLVED] Copy/Rename Multiple files in Excel
    By chris619 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-13-2017, 02:44 PM
  3. [SOLVED] rename multiple excel files as per its own cell value A2
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-11-2017, 01:55 AM
  4. [SOLVED] Copy/Rename Multiple files using Excel values in columns
    By felizeng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2017, 10:52 AM
  5. How to copy and rename files in vba by searching multiple folders for files
    By razorace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 04:21 AM
  6. VBA Rename Multiple .txt Files
    By cdowney in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2013, 03:34 PM
  7. Replies: 0
    Last Post: 03-04-2013, 02:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1