Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a macro to delete a text box on click. I asigned that macro to
the text box. Nothing happens. I have the security set to low. What I want
is a text box to disipear when I click on it.
 
I have created a macro to delete a text box on click. I asigned that macro to
the text box. Nothing happens. I have the security set to low. What I want
is a text box to disipear when I click on it.

If you need help with macro code, always POST a working example of the code.
 
Getting stuff to go away is easy with action settings.

Sub GoAway(oShp As Shape)
oShp.Visible = msoFalse
End Sub

Bringing it back is a bit more complicated, but still not difficult.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
Getting stuff to go away is easy with action settings.

Sub GoAway(oShp As Shape)
oShp.Visible = msoFalse
End Sub

Bringing it back is a bit more complicated, but still not difficult.

If you know where it is (ie, where to click a second time), it's as easy as
this:

Sub GoAwayAndComeBack(oShp As Shape)
oShp.Visible = Not oShp.Visible
End Sub

Then there's:

Sub GoAwayAndSTAYAway(oShp As Shape)
oShp.Delete
End Sub

or

Sub HowCanWeMissYouIfYouWontGoAway(oShp As Shape)
oShp.Visible = False
Sleep(5000)
oShp.Visible = True
End Sub


Life just doesn't get any geekier than this.
 
That did it!! Thank you.

Steve Rindsberg said:
If you need help with macro code, always POST a working example of the code.



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
Life just doesn't get any geekier than this.

The geek shall inherit the mirth.
 
Sub GoAwayAndComeBack(oShp As Shape)
oShp.Visible = Not oShp.Visible
End Sub

Hmm. How is this going to work? It will hide the shape on the first click,
but if the shape isn't visible, I don't think you can click on it even if
you "know where to click." I think you would need another shape to click on
to bring it back.
--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top