+ Reply to Thread
Results 1 to 2 of 2

Rename Files according to Excel

  1. #1
    Registered User
    Join Date
    01-12-2006
    Posts
    7

    Rename Files according to Excel

    Hello. I am new to macros and such. I am trying to make an excel spreadsheet that will convert files (with known names) into more descriptively named derived from some cells in excel..I have no idea where to start

  2. #2
    NickHK
    Guest

    Re: Rename Files according to Excel

    nima,
    assuming you have you all your data on a worksheet, something like:
    Dim FileName As Range
    For Each FileName In ThisWorkbook.Worksheets("Data").Range("FileNames")
    Name FileName.Value As FileName.Offset(0, 1).Value
    Next

    You should error checking to ensure the the files exist, names valid, etc.

    NickHK

    "nima" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Hello. I am new to macros and such. I am trying to make an excel
    > spreadsheet that will convert files (with known names) into more
    > descriptively named derived from some cells in excel..I have no idea
    > where to start
    >
    >
    > --
    > nima
    > ------------------------------------------------------------------------
    > nima's Profile:

    http://www.excelforum.com/member.php...o&userid=30408
    > View this thread: http://www.excelforum.com/showthread...hreadid=509181
    >




+ 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