Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Which picture was clicked

I have several hundred pictures on a worksheet. I want to assign the same
macro to each picture, but have the macro determine which picture was
clicked. Is this possible?

Bob


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Which picture was clicked

Dim myPict as picture
set mypict = activesheet.pictures(Application.caller)

msgbox mypict.name & vblf & mypict.topleftcell.address 'or anything you want

Bob Flanagan wrote:

I have several hundred pictures on a worksheet. I want to assign the same
macro to each picture, but have the macro determine which picture was
clicked. Is this possible?

Bob


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Which picture was clicked

Many thanks.

Bob

"Dave Peterson" wrote in message
...
Dim myPict as picture
set mypict = activesheet.pictures(Application.caller)

msgbox mypict.name & vblf & mypict.topleftcell.address 'or anything you
want

Bob Flanagan wrote:

I have several hundred pictures on a worksheet. I want to assign the
same
macro to each picture, but have the macro determine which picture was
clicked. Is this possible?

Bob


--

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
Connect a number to a picture bank and import that picture to exce Dennis Hedo Excel Discussion (Misc queries) 1 March 22nd 10 02:17 PM
Clicked NO to save, should have clicked YES Jenn Excel Discussion (Misc queries) 1 March 8th 10 09:04 PM
How can I pop up a picture when a cell is clicked on Excel? Hamlet Excel Discussion (Misc queries) 2 August 29th 08 08:16 PM
Problem inserting a picture in Excel that ONLY shows when clicked Blackgammon Excel Discussion (Misc queries) 3 March 31st 06 07:11 PM
Change cell value when right-clicked/double-clicked grime[_5_] Excel Programming 5 October 17th 05 01:52 PM


All times are GMT +1. The time now is 08:55 PM.

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

About Us

"It's about Microsoft Excel"