+ Reply to Thread
Results 1 to 2 of 2

massive amount of numbered pdfs-need renamed

  1. #1
    Registered User
    Join Date
    03-15-2011
    Location
    Marsing, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    1

    massive amount of numbered pdfs-need renamed

    I have over 6,000 pdfs that have a date and the number of the pdf. For example:

    March_15_2011_00001.pdf
    March_14_2011_00002.pdf

    The numbers go up and I need to get rid of them while keeping the dates. Is there a way to do this with excel?

    Thanks!

  2. #2
    Registered User
    Join Date
    02-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: massive amount of numbered pdfs-need renamed

    It appears you want a macro that of some sort, that accesses Explorer, finds a file with trailing numbers, and cuts them off.

    I think your question should be moved to the Programming forum, as this requires code to accomplish.

    External Link Provides a similar solution of how to do this in VBA....it could be adapted to your purposes for renaming files in excel.

    External Link 2 A much more elegant approach taken here to get the directory list.

    External Link 3 Straighforward approach of using command line to get file names from dir listing, putting them in excel in one column, and using functions to get the desired output names. Then another command line batch is made using the ren command to use the changes you made in excel.

    The excel processing you could use, is paste the filenames you got from the command line in Column A. Then copy these to column B. Do a find/replace in column B to

    External Link 4 also at our very own forum On ExcelForum.com Data >> Text to Columns Data Text to columns to split information using the delimited character _ Use command line to run the renaming.
    Last edited by delforum; 03-16-2011 at 01:44 AM. Reason: Additional Information

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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