Results 1 to 3 of 3

Thread: Determine Object Clicked VBA

  1. #1
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default Determine Object Clicked VBA

    ok so here is the question
    How do i determine which shape was clicked if they all execute the same macro in a Powerpoint presentation. using the
    Code:
    Sub Name(abc as Shape)
    Debug.Print abc.Name
    End Sub
    doesnt seem to work

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    I have never programmed VB or C# in powerpoint but if you can, try adding an event handler to each object.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    The only Reason I want to do this is so i can cut back on the code involved,
    64 Buttons require annoying procedures and takes even longer to hook up/debug, what about passing parameters to Macros when calling, cant seem to do that, anyone know how?

Thread Information

Users Browsing this Thread

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

Posting Permissions

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