Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have set up a macro which inserts a picture onto a cell (AH34), based upon
the value of another cell (L21 - which provides the filename). Dim s As String s = "C:\pictures\" & Range("L21").Value & ".jpg" Range("ah34").Select ActiveSheet.Pictures.Insert(s).Select My problem is that if the file does not exist, I get an error box "type mismatch" I would like the situation that if a file is not available, it enters "photo not available" into the cell instead Something like IF file=true insert phto IF file=false inserts "Photo not available" Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert Photo - help | Excel Discussion (Misc queries) | |||
how do I insert a photo in a protected .xls spreadsheet | Excel Discussion (Misc queries) | |||
How to insert a photo in the background for printing. | Excel Discussion (Misc queries) | |||
Insert photo into a protected worksheet | Excel Worksheet Functions | |||
Insert Photo into a protected worksheet | Excel Worksheet Functions |