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
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,
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
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks