Dynamically Updating Image (ActiveX Image Control?)

VTHokie11

New Member
Joined
Oct 26, 2011
Messages
19
Hello thank you for looking at this thread! My workbook simply has multiple columns of data which will be summarized visually in a tag cloud (I have the tag cloud part taken care of already creating either a jpg or png, I simply have to change the extension within a batch file to change between picture formats)

I need to have the tag cloud image display and update depending on which column the user would like to summarize (for now I have simplified the issue by only having one of the data columns in my workbook, and will worry about the user selection of the data column to be summarized later).

My Main Question:

Focusing on the image display and updating now, whether it be an ActiveX Image Control or any other way (open to any ideas advice). I've been playing around manually before I try and code it and I can not get either a jpg or png file to attach to the ActiveX control (both of which cause an Invalid Picture Message).

The file name can stay the same if need be and for now I think/assume that'd be easiest (I have my Tag cloud generator just replacing the previously existing image file of the same name).

Would ActiveX control be the way to go for this dynamically changing image? If not how would you recommend I try and tackle this. Please let me know if I've not been clear and much thanks in advance!:)
 
I don't think the location matters because you are getting an Invalid Picture error. If you think it matters try putting the jpgs on your desktop and assigning one of those to the control. If you choose Insert|Picture can you put one of your jpgs on a worksheet?
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hmmm... yea I tested whether the location mattered and found it still produced the error when placed in the same folder as an image which was successfully attached to the ActiveX image control.

I also just successfully inserted-->picture the same jpeg image which will not attach to the ActiveX image control. So it can be inserted as a picture but not attached to the ActiveX image control. I don't get it but its something to do with the image file since I successfully attached a different image. Thank you so much Andrew!
 
Upvote 0
Perhaps since it can be successfully inserted as a picture I should have my code insert it as a picture then when a new word cloud image file has been produced and it needs to be updated, delete and insert again? I just thought ActiveX would be an easier way of updating the image like this.

I don't know too much about ActiveX controls but as long as I can continue to display the updated image file I'd be happy. Thanks for all your help Andrew at least were eliminating reasons why its not working.
 
Upvote 0

Forum statistics

Threads
1,215,156
Messages
6,123,339
Members
449,098
Latest member
thnirmitha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top