Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

power point macro problem

Options
  • 27-01-2009 4:47pm
    #1
    Closed Accounts Posts: 1


    I have a power point file that contains a macro.
    when I click the button "i" in slide 2 it should display a callout named note.

    then, when clicking the callout OR clicking button "i" again, the callout should be hidden.

    I used 2 global variables:
    _______________________________________________________
    Dim sld As Slide ' slide2
    Dim sh As Shape ' callout
    _______________________________________________________
    Sub displayNote()

    Set sld = ActivePresentation.Slides(2)
    Set sh = sld.Shapes.AddShape(msoShapeRectangularCallout, 50, 100,200,100)

    With sh
    .Name = "note"
    End With

    End Sub
    ______________________________________________________
    Sub hideNote()

    End Sub
    _____________________________________________________
    the problem is with hideNote()
    How can I get the callout named note so I can delete it?
    Thanks alot n advance


Advertisement