Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I it possible to serach for a picture on a worksheet via VBA, I'm trying to see if a particular picture is visible on a worksheet if not then copy from another another worksheet? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe...
Do you know the name of the picture--not the filename that you used to insert the picture--the name that appears in the namebox (to the left of the formulabar) when you select that picture. Or maybe by its location??? MM User wrote: Hi, I it possible to serach for a picture on a worksheet via VBA, I'm trying to see if a particular picture is visible on a worksheet if not then copy from another another worksheet? Thanks! -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave, yes I know its name (it will be "panel1")
Regards "Dave Peterson" wrote in message ... Maybe... Do you know the name of the picture--not the filename that you used to insert the picture--the name that appears in the namebox (to the left of the formulabar) when you select that picture. Or maybe by its location??? MM User wrote: Hi, I it possible to serach for a picture on a worksheet via VBA, I'm trying to see if a particular picture is visible on a worksheet if not then copy from another another worksheet? Thanks! -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use something like:
dim myPict as Picture set mypict = nothing on error resume next set mypict = worksheets("Somesheetnamehere").pictures("Panel1") on error goto 0 if mypict is nothing then 'it's not there else 'it's already there if mypict.visible = false then 'make it visible??? mypict.visible = true end if end if MM User wrote: Thanks Dave, yes I know its name (it will be "panel1") Regards "Dave Peterson" wrote in message ... Maybe... Do you know the name of the picture--not the filename that you used to insert the picture--the name that appears in the namebox (to the left of the formulabar) when you select that picture. Or maybe by its location??? MM User wrote: Hi, I it possible to serach for a picture on a worksheet via VBA, I'm trying to see if a particular picture is visible on a worksheet if not then copy from another another worksheet? Thanks! -- Dave Peterson -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave, thats what I was after!
"Dave Peterson" wrote in message ... You can use something like: dim myPict as Picture set mypict = nothing on error resume next set mypict = worksheets("Somesheetnamehere").pictures("Panel1") on error goto 0 if mypict is nothing then 'it's not there else 'it's already there if mypict.visible = false then 'make it visible??? mypict.visible = true end if end if MM User wrote: Thanks Dave, yes I know its name (it will be "panel1") Regards "Dave Peterson" wrote in message ... Maybe... Do you know the name of the picture--not the filename that you used to insert the picture--the name that appears in the namebox (to the left of the formulabar) when you select that picture. Or maybe by its location??? MM User wrote: Hi, I it possible to serach for a picture on a worksheet via VBA, I'm trying to see if a particular picture is visible on a worksheet if not then copy from another another worksheet? Thanks! -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i find a picture that is in a header? | Excel Discussion (Misc queries) | |||
find and display a picture | Excel Programming | |||
find picture objects | Excel Programming | |||
How to extract a picture from an Excel worksheet into a picture fi | Excel Discussion (Misc queries) | |||
How to retrieve the name of a picture within a worksheet? | Excel Programming |