Inserting multiple images as the result of a formula

tuma

New Member
Joined
May 24, 2010
Messages
1
Hello. I am working with some data and it would be nice to be able to display it visually. What I want to do is if some formula I am working with results with the answer '5', I want 5 images of buses to appear in the following cell. This would be done multiple times all using the same image. Any advice? thanks.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello. I am working with some data and it would be nice to be able to display it visually. What I want to do is if some formula I am working with results with the answer '5', I want 5 images of buses to appear in the following cell. This would be done multiple times all using the same image. Any advice? thanks.

Maybe this could give you an idea:

If Range("A1").Value = 5 Then
Range("B1").Select
ActiveSheet.OLEObjects.Add(Filename:="D:\Common\data\deal.gif", Link:=False _
, DisplayAsIcon:=False).Select
End If

Of course you'd have too find or create the image and save it.

The above inserts a picture into cell B1 due too the Value of the formula in A1.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,976
Members
448,934
Latest member
audette89

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