Loading pictures from already populated image control

Peter__

New Member
Joined
Sep 16, 2011
Messages
8
I've got a spreadsheet which is starting to get a bit big and slow to load/save.

It's got an (identical) graphic logo on each of two dozen sheets, which I suspect is the main reason for this.

So what I'd like to do is just have the logo in an image control on one sheet, and an empty image control on every other sheet, which are filled with the image from the first sheet at startup.

Is that possible? What code would I use? Would it achieve what I want?

Any other solutions? (I've considered copying pasting on load-up, but that way the images would all get saved when the sheet is, thus defeating the purpose. I've also considered loading the image from a file, but adding another file would make deployment a significant hassle, so I'd rather avoid it).
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You could delete the duplicate images in the Before_Save and the Before_Close events in addition to copy/paste on Open.
 
Upvote 0
Yeah, that's a decent suggestion, it just seems a bit, I dunno... inelegant. I guess because I'd then need more routines in... actually I'm not sure which event i could attach it to, to then recreate the images after a Save.

Or I could take the picture from the image control, save it to a file in the temp folder, and then load it into the other controls. But that seems, perhaps, even messier.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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