+ Reply to Thread
Results 1 to 17 of 17

Changing File Names in Excel Folder

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: Changing File Names in Excel Folder

    You can do this easily with a batch file as follows:

    From the Command Prompt (available under accessories) run the following from the directory containing the files:

    ren Branch????_2010.* Branch????_2011.*

    You change directories with the command cd DIRNAME where DIRNAME is the directory name. This can get a bit weird if you are not used to batch commands, so alternately, you can place a text file in the directory which contains the above, rename it to RENAME.BAT, and then double-click it to execute the command.

    ---GJCase

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Changing File Names in Excel Folder

    You can do that using VBA:

    sub snb()
     Shell "cmd /c ren "H:\SAFETY\FORMS\ 300 & 300A\2011\*_2010.* *_2011.*"
    End Sub



+ 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