Hello,
I'm trying to explain as clear as possible here. I got a VBA code to insert an image file from a specific folder to my excel workbook. However, this code requires the image file name has to be as an item number.
For example, if I want to pull an image of an item called "17001", I have to enter "17001" from excel and use VBA to pull that image from the folder. The name of the file needs to be "17001.jpg" to be able to pull the image.
It is very simple until recently when I received an image database from the coworker and he names the images with item number and item description. Now the name of the file contains something like "17001_Rubber_Ball_Large_Size.jpg". I could not pull the image from the folder anymore since the file name has different description from the cell value. I just want to use the Item number to search for the image.
Could you please help me modify the vba code below so that it can look up the item number 17001 from the cell value and automatically retrieve the file name which contain the item number and its description ?
Bookmarks