Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Find a picture on a worksheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Find a picture on a worksheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Find a picture on a worksheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Find a picture on a worksheet

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Find a picture on a worksheet

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i find a picture that is in a header? Dave McD Excel Discussion (Misc queries) 3 April 20th 09 02:22 PM
find and display a picture Paul Pedersen Excel Programming 2 March 1st 07 06:40 PM
find picture objects Dave B[_3_] Excel Programming 4 October 21st 05 03:46 AM
How to extract a picture from an Excel worksheet into a picture fi SARANJAI Excel Discussion (Misc queries) 10 June 12th 05 05:00 AM
How to retrieve the name of a picture within a worksheet? Oscar Excel Programming 3 January 5th 04 01:39 AM


All times are GMT +1. The time now is 02:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"