Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Find a picture on a worksheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MM User - 10 Nov 2007 17:09 GMT
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 - 10 Nov 2007 17:17 GMT
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???

> Hi,
>
[quoted text clipped - 3 lines]
>
> Thanks!

Signature

Dave Peterson

MM User - 10 Nov 2007 17:38 GMT
Thanks Dave, yes I know its name (it will be "panel1")

Regards

> Maybe...
>
[quoted text clipped - 14 lines]
>>
>> Thanks!
Dave Peterson - 10 Nov 2007 20:06 GMT
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

> Thanks Dave, yes I know its name (it will be "panel1")
>
[quoted text clipped - 22 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

MM User - 10 Nov 2007 22:38 GMT
Thanks Dave, thats what I was after!

> You can use something like:
>
[quoted text clipped - 42 lines]
>> >
>> > Dave Peterson
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.