hi
i suppose the title is sort of lame. sorry.
I’m helping a friend develop her online store database. We are developing in Microsoft Excel 2000 - xls.
To save lots of work we’re naming the images after the sku (product id). For example if the sku were “P1234” then the three images would use that sku name as the basis for the image name. Like so…
P1234.jpg
P1234_sm.jpg
P1234_l.jpg
Where _l represents the large version in case you have problems with your font displaying the letter l and the number 1.
At any rate, we need to insert the sku into several fields row by row but I do not know how to do this. We need to take the first cell of the row and insert into column 5, which is an image link. For example…
P1234|field2|field3|field4|<IMG SRC="Path_to_image/ SKU.gif" BORDER=0>|
The “SKU” needs to be changed to the value of cell1 on a row by row basis.
Concerning the _sm and _l images; they go into column 8 and column 9 rows respectively. Both fields have similar requirements in that they both have the relative path followed by the image name…
images/products/SKU_sm.jpg
images/products/SKU_l.jpg
like so…
P1234|||||P1234.jpg|||Path_to_Image/SKU_sm.jpg|Path_to_Image/SKU_l.jpg|
The example above has field5 shortened for demonstration purposes.
It would be great to have an example to do this globally for the initial setup then as products are added the replacement or insertion can be done on a row by row basis to avoid any possibility of messing up established products.
Any links to appropriate reference or examples of a macro or function would be greatly appreciated.
Thanks for your consideration!
Bookmarks