+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : How to get clicked picture AlternativeText in VBA

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    6-burg
    MS-Off Ver
    Excel 2007
    Posts
    6

    How to get clicked picture AlternativeText in VBA

    1st post here ... gentle on a vba newbie

    I have a few pictures on a sheet
    I'd like to return the AlternativeText from whatever picture the user clicks
    (Then eventually, i'll find that Alt-Text on another sheet)

    I found the property AlternativeText for Shape and ShapeRange ... but not sure how to get this for the clicked picture .... what i'm looking for:

    Please Login or Register  to view this content.
    Thanks In Advance
    Last edited by frittob; 03-13-2009 at 03:40 PM. Reason: Added code tags as per forum rules

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: How to get clicked picture AlternativeText in VBA

    This works for me.

    Please Login or Register  to view this content.
    If you still have problem post example file with picture.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    6-burg
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to get clicked picture AlternativeText in VBA

    Thanks Andy, I appreciate the response

    How do i know which picture was clicked?

    Your example uses "Picture 1" ... in the spreadsheet, i'll have multiple pictures, all running the same macro when the user clicks one

    So how do you distinguish which picture was actually selected?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: How to get clicked picture AlternativeText in VBA

    Assuming you have used the Assign Macro property on the pictures,

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-05-2009
    Location
    6-burg
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How to get clicked picture AlternativeText in VBA

    Perfect ... Thank You!

    yup using the macro's ... The Alt-Text gives me kind of a poor mans menu system
    User clicks on a picture, then i use the alt-text to do a find on a different sheet

    Thanks again

  6. #6
    Registered User
    Join Date
    03-04-2010
    Location
    france
    MS-Off Ver
    Excel 2003
    Posts
    1

    Function to get AlternativeText in a Range

    Hello, i have a similar macro, but i research to do this with a function, rather than a click,

    also i have a problem when there is multiple images in a cell, i would like to extract all the texts from this cell (with ; )

    I join my workbook

    Thnaks in advance for your help
    Attached Files Attached Files
    Last edited by Nioubie; 11-21-2011 at 02:44 PM. Reason: Bad Thread (solved) should be a new one

+ 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