PC Review


Reply
 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      18th Feb 2006
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.
 
Reply With Quote
 
 
 
 
Steve Rindsberg
Guest
Posts: n/a
 
      18th Feb 2006
In article <3E92A1BA-E9F7-4050-9CB7-(E-Mail Removed)>, Mike wrote:
> 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.



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 
Reply With Quote
 
 
 
 
Bill Dilworth
Guest
Posts: n/a
 
      18th Feb 2006
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
..


"Mike" <(E-Mail Removed)> wrote in message
news:3E92A1BA-E9F7-4050-9CB7-(E-Mail Removed)...
>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.



 
Reply With Quote
 
Steve Rindsberg
Guest
Posts: n/a
 
      18th Feb 2006
In article <(E-Mail Removed)>, Bill Dilworth wrote:
> 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.


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 
Reply With Quote
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      19th Feb 2006
That did it!! Thank you.

"Steve Rindsberg" wrote:

> In article <3E92A1BA-E9F7-4050-9CB7-(E-Mail Removed)>, Mike wrote:
> > 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.
>
>
>
> -----------------------------------------
> Steve Rindsberg, PPT MVP
> PPT FAQ: www.pptfaq.com
> PPTools: www.pptools.com
> ================================================
>
>
>

 
Reply With Quote
 
Bill Dilworth
Guest
Posts: n/a
 
      19th Feb 2006
> Life just doesn't get any geekier than this.

The geek shall inherit the mirth.





 
Reply With Quote
 
Steve Rindsberg
Guest
Posts: n/a
 
      19th Feb 2006
In article <(E-Mail Removed)>, Bill Dilworth wrote:
> > Life just doesn't get any geekier than this.

>
> The geek shall inherit the mirth.
>


Mirth? Dang. I thought the deal was *girth*!



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 
Reply With Quote
 
David M. Marcovitz
Guest
Posts: n/a
 
      20th Feb 2006
> 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro will not run with file.xls!macro.macro BillRobPV Microsoft Excel Discussion 2 12th Sep 2008 05:08 PM
Macro within a macro and Macro Prompts =?Utf-8?B?Y29tcGFyaW5pMzAwMA==?= Microsoft Excel Misc 3 7th Jun 2006 01:28 PM
Run Macro/Macro at specific location =?Utf-8?B?SmltbXk=?= Microsoft Word Document Management 2 6th Feb 2004 08:56 PM
Start Macro / Stop Macro / Restart Macro Pete Microsoft Excel Programming 2 21st Nov 2003 06:04 PM
Macro button stops working when macro moved HONYAKUKA Microsoft Word Document Management 1 13th Jul 2003 09:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:48 AM.