Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Renaming jpgs in a directory using names in excel spreadsheet

Hi,

I have spreadsheet with images named by one of our vendors. We need to
rename these images with our SKUs.

I've done a VLookup to juxtapose the vendor image names with our SKUs,
now how do I automate a rename of the actual images in the file with
our SKUs listed in excel?

Thank you!!!
Tobey
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Renaming jpgs in a directory using names in excel spreadsheet

Hi Tobey

You can loop through the list and use the Name function
If you need help with the loop post back with details

Sub Move_Rename_One_File()
'You can change the path and file name
Name "C:\Users\Ron\SourceFolder\Test.xls" As "C:\Users\Ron\DestFolder\TestNew.xls"
End Sub

Instead of this
"C:\Users\Ron\SourceFolder\Test.xls"
You can use a cell reference in the loop to rename the file


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Tobey" wrote in message ...
Hi,

I have spreadsheet with images named by one of our vendors. We need to
rename these images with our SKUs.

I've done a VLookup to juxtapose the vendor image names with our SKUs,
now how do I automate a rename of the actual images in the file with
our SKUs listed in excel?

Thank you!!!
Tobey

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Renaming jpgs in a directory using names in excel spreadsheet

Look up the Name Statement in the VB help files... it allows you to rename
files on the hard drive (as an extra hint, I always supply a full path for
both arguments when using this command).

Rick


"Tobey" wrote in message
...
Hi,

I have spreadsheet with images named by one of our vendors. We need to
rename these images with our SKUs.

I've done a VLookup to juxtapose the vendor image names with our SKUs,
now how do I automate a rename of the actual images in the file with
our SKUs listed in excel?

Thank you!!!
Tobey


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming files in a directory nospaminlich Excel Programming 2 December 26th 07 10:57 PM
Why is MS Excel renaming worksheets (truncating names)? Is there a fix for this? Charles F. Radley Setting up and Configuration of Excel 8 June 14th 07 02:53 AM
Renaming files in a directory Candyman Excel Programming 2 December 7th 05 07:16 PM
Creating a macro that lists directory names within a directory.... Andy Excel Programming 4 November 28th 04 06:13 AM
Renaming all files in a directory Jan Kronsell[_3_] Excel Programming 4 February 19th 04 12:33 PM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"