Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Inserted picture name

Thanks All
Easy when you know how!

"Peter T" wrote:

If you only want the name go with the simpler code Tom suggested

s = ActiveSheet.Shapes(Application.Caller).Name
s = Application.Caller

will both return the same

Regards,
Peter T

"DaveJones" wrote in message
...
Thanks Peter
I used sPath = ActiveSheet.Shapes(Application.Caller).Name
This picked up which picture I had clicked on and loaded the relevant
picture from the hard disk. All working fine!
Regards
DaveJones

"Peter T" wrote:

Maybe you could store the fullpath of the bigger version in the
AlternativeText property of the small worksheet picture.

In the macro

sPath = ActiveSheet.Shapes(Application.Caller).Alternative Text

Simplest is if sPath is a public variable to be read during the forms
initialize event, though there are other ways without using a public

var.

Regards,
Peter T



"DaveJones" wrote in message
...
Hello
I have inserted a small version of a picture onto a spreadsheet. I've

then
linked a macro that opens a userform with a frame on it that displays

a
bigger version of the picture when you click on it. This works if I
physically put the path name of the picture in the code. Can I pick up

in
the
code the name of the picture on the spreadsheet as I am going to have
multiple small pictures on the spreadsheet and would like to only

access
one
sub to load it onto the userform.

Regards
DaveJones






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 associate an inserted picture with its row? [email protected] Excel Discussion (Misc queries) 1 October 22nd 09 07:22 AM
how do I write over a picture that was inserted in excel? julicalo Excel Discussion (Misc queries) 1 October 15th 08 05:56 PM
Printing the inserted picture Wildan Excel Discussion (Misc queries) 0 December 13th 06 03:10 PM
picture 34 was inserted by excel? sophy2 Excel Discussion (Misc queries) 1 October 6th 05 02:23 PM
How to identify an inserted picture within a formula Jeff Melvaine Excel Discussion (Misc queries) 9 January 30th 05 01:02 PM


All times are GMT +1. The time now is 09:26 AM.

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"