Hello,
1. I have a multisheet excel file where I would like VBA code to go out onto the server and pull in jpeg images based on style names listed in the spreadsheet.
2. Style names could be on any cell say from range a1:ab200. Generally about 60 styles per excel workbook tab. We use multiple tabs in the workbook for showing styles / pics.
a. styles names are very generic e.g. Kathleen, Jennifer, Sammi. Style names are not two words or 1 word with a number. E.g. style names are not Mary Lou or Jennifer 2.
3. The jpeg pics that I would like to input next (same row to the right) to any style name on any cell of the file are saved in the same folder.
"S:\COMMON-CHAPS\CHAPS-Wedge\RTW\Pre-Holiday'18\Kohl's\MISSY\backup\floorplan"
a. Ideally the image would be 1 in by 1in directly to the right of the cell with the style name. I will insert columns and rows to ensure that no inserted jpeg would overlap.
b. I would like the style name to be preserved as the jpeg name when placed inside the excel workbook.
c. If the style jpeg is not in the directory, I would like the vba code to skip that style name and go directly to the next style name / image until it has worked through all tabs in the workbook.
4. Workbook name is currently "test1.xlsm" but could be frequently renamed. I am hoping that I don't need to change the code as the file is renamed.
5. Ideally jpegs would be less than 1 in x 1 in and could be deleted and replaced with the same macro as the style name is changed within the workbook.
a. Ideally I would have a button that when pressed would delete all images and then insert new images as described above.
Can someone help me with this? I have been seeing lots of code where it is very specific that it only pulls back 1 pic for 1 specific cell. I need expanded functionality for any cells that have a style name on the tab that match any pics in the same folder.
Thank you,
Tiffanie
1. I have a multisheet excel file where I would like VBA code to go out onto the server and pull in jpeg images based on style names listed in the spreadsheet.
2. Style names could be on any cell say from range a1:ab200. Generally about 60 styles per excel workbook tab. We use multiple tabs in the workbook for showing styles / pics.
a. styles names are very generic e.g. Kathleen, Jennifer, Sammi. Style names are not two words or 1 word with a number. E.g. style names are not Mary Lou or Jennifer 2.
3. The jpeg pics that I would like to input next (same row to the right) to any style name on any cell of the file are saved in the same folder.
"S:\COMMON-CHAPS\CHAPS-Wedge\RTW\Pre-Holiday'18\Kohl's\MISSY\backup\floorplan"
a. Ideally the image would be 1 in by 1in directly to the right of the cell with the style name. I will insert columns and rows to ensure that no inserted jpeg would overlap.
b. I would like the style name to be preserved as the jpeg name when placed inside the excel workbook.
c. If the style jpeg is not in the directory, I would like the vba code to skip that style name and go directly to the next style name / image until it has worked through all tabs in the workbook.
4. Workbook name is currently "test1.xlsm" but could be frequently renamed. I am hoping that I don't need to change the code as the file is renamed.
5. Ideally jpegs would be less than 1 in x 1 in and could be deleted and replaced with the same macro as the style name is changed within the workbook.
a. Ideally I would have a button that when pressed would delete all images and then insert new images as described above.
Can someone help me with this? I have been seeing lots of code where it is very specific that it only pulls back 1 pic for 1 specific cell. I need expanded functionality for any cells that have a style name on the tab that match any pics in the same folder.
Thank you,
Tiffanie