+ Reply to Thread
Results 1 to 3 of 3

VBA to rename files?

  1. #1
    Registered User
    Join Date
    01-25-2009
    Location
    Florida, USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    VBA to rename files?

    Hello,

    Is it possible to batch rename files through Excel?
    I have several folders each containing 38 files. ie 1.obj, 2.obj, 3.obj....... through 38.obj
    I need to have each file given a unique name

    ie
    1.obj renamed to V_GBH.obj
    2.obj renamed to B_GGHC.obj
    3.obj renamed to V_DFV.obj

    Is it possible to have a setup such that
    the file the name in A:1, will be renamed to B:1
    the file the name in A:2, will be renamed to B:2

    etc

    My directory path:
    D:\SVD_Tests\3D_Scenes\Characters\3D_Models\Export_Tests\Folder_01

    Thanks for any help

    Jeff

  2. #2
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: VBA to rename files?

    This can be done through Excel/VBA.

    You will need a code module and a macro that scans the file names.

    The macro will look like this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-25-2009
    Location
    Florida, USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: VBA to rename files?

    Cool

    Thanks, Dennis7849!

    Jeff

+ 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