ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can an IF statement insert an picture? (https://www.excelbanter.com/excel-discussion-misc-queries/109343-can-if-statement-insert-picture.html)

Iriemon

Can an IF statement insert an picture?
 
Is there any way to use an IF statement to have it return an picture? Example:

= IF(a1=1,xxxxxx.jpg,"")

If cell a1 =1, insert a picture, otherwise leave cell blanK.

Thanks!



Don Guillett

Can an IF statement insert an picture?
 
A formula may only return a value. You need a macro, Try

if range("a1")=1 then
ActiveSheet.Pictures.Insert("C:\yourfolder\yourpic ture.jpg")
--
Don Guillett
SalesAid Software

"Iriemon" wrote in message
...
Is there any way to use an IF statement to have it return an picture?
Example:

= IF(a1=1,xxxxxx.jpg,"")

If cell a1 =1, insert a picture, otherwise leave cell blanK.

Thanks!





Gord Dibben

Can an IF statement insert an picture?
 
Maybe something for you at John McGimpsey's site.

http://www.mcgimpsey.com/excel/lookuppics.html


Gord Dibben MS Excel MVP



On Mon, 11 Sep 2006 05:43:02 -0700, Iriemon
wrote:

Is there any way to use an IF statement to have it return an picture? Example:

= IF(a1=1,xxxxxx.jpg,"")

If cell a1 =1, insert a picture, otherwise leave cell blanK.

Thanks!


Gord Dibben MS Excel MVP


All times are GMT +1. The time now is 06:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com