I have added my macro to my toolbar and would like to put some sort of basic check on it. Instead of asking the user whether he wants to perform the macro, I would like to check the document for a certain image that is always in the documents the macro is used for. (other suggestions are welcome too)
ActiveSheet.Shapes.Range(Array("Picture -767")).Select
That’s the code I use to select the image. I haven’t been able to find out how to manage an image. What I’m trying to do is
If Image is found then
Part1
Part2
Else
MsgBox 'Macro is not intended for this document'
End if
All help is appreciated!
This should work: