Hi,
I searched the forums, but came up empty. In Excel, I have a worksheet with images appearing in one column and a numerical identifier in another column. I want to create a macro that will export the images to disk using the associated identifiers as the file name. Sounded simple, until I discovered that images are not part of the cell, but of the worksheet and are basically anchored to a cell, so querying each cell to get the picture does not work.
I can successfully loop through the worksheet shapes, get each image, and copy it to the clipboard (using Cells(range).CopyPicture), but cannot see how to save it to disk. I would also have to use something like “Shape.TopLeftCell.Address” to determine which row it is anchored to in order to get the associated identifier.
I tried using VB6 to do the same thing and got just as far — can copy to the clipboard — but when I try to use SavePicture I get an error about Invalid Property Value.
Before I bang my head any further, is there some way that I have been overlooking to accomplish this seemingly simple task?
Thanks!