+ Reply to Thread
Results 1 to 3 of 3

VBA Get Name of Picture

  1. #1
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    VBA Get Name of Picture

    Hello All

    I hope this is easy to explain....

    If I had say three pictures on a sheet all with the same macro assigned to them (the reason being that the name of the picture would dictate what happend in the macro) is it possible to get the name of picture that was clicked on to run the macro?

    So for example if the pictures were named Department 1, Department 2 and Department 3. Clicking on each of them would run the same macro but the picture name could then be used further in the macro

    I know this wont be it but I was hoping I would be able to do something like......

    Please Login or Register  to view this content.
    Any hints would be great.

    If you need me to explain further, please let me know.

    Thanks in advance.

    Jim
    Last edited by JimmyA; 12-22-2010 at 08:16 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: VBA Get Name of Picture

    Application.Caller will return the name of the object in your macro.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: VBA Get Name of Picture

    Great Stuff

    Thanks very much romperstomper, I hoped there would be something like that.

    Thanks again

    Jim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1