View Single Post
  #4  
Old May 31st, 2004, 10:26 PM
Bill Dilworth
external usenet poster
 
Posts: n/a
Default "Click here" box

Welcome to the dark side, you don't know the PowerPoint of the darkside.

VBA, do what you seek, for you , it will. (Sorry, I don't do Yoda well.
I'll stick with Bill instead.)


You will need to insert a textbox using the following technique:
View | Toolbars | Controls Toolbox
find the Textbox control, click on it, and draw the box on your slide.

Now you will want to add some code modify the textboxes appearance and
behavior:

From the editing window of PowerPoint, double click inside the textbox.
This action will bring up your VBE (Visual Basic Editor) window and begin a
sub routine for you. The first line of the code should read 'Private Sub
TextBox1_Change()'

Near the top, on the right, you will see a pulldown box that is labeled
Change. Pull this down and find GotFocus, click on it. A new sub routine
will appear labeled 'Private Sub TextBox1_GotFocus()'. Add the line
TextBox1.Text = "" inside this routine. If you want, you can delete the
first routine.

As of right now, your textbox will clear whenever someone clicks on it.

But you also want the text "Type your name here" to be centered within this
textbox, so... still in the VBE click on View | and select the Property
window. In this window, use the pulldown to select Textbox1. In the box
next to 'Text', add Type your name here. The look for the box below that
'Text Align' and change that to '2 - fmTextAlignCenter'.

This should do what you have asked.


--
Bill Dilworth, Microsoft PPT MVP
===============
Please spend a few minutes checking vestprog2@
out www.pptfaq.com This link will yahoo.
answer most of our questions, before com
you think to ask them.

Change org to com to defuse anti-spam,
ant-virus, anti-nuisance misdirection.
..
..


"paul marcuzzo" wrote in message
...
I am sure this is really easy and I just can't see the
forest for the trees. On my title slide I want a "Click
here" box that automatically deletes that text and then
let's you start typing your text there. THe basic thing
I am after is for an instructor to see a box that
says "Your name here" and when he clicks in that text
box, that text is deleted and he's sitting there with
the "I" bar already justified in the center of it and
ready for him/her to type their name in for the
presentation.

Any help would be greatly appreciated ! I have searched
and have not hit the right combination of words to turn
this answer up. I thought a placeholder was what I was
looking for, but I can't create those according to what I
found.

TIA
Paul Marcuzzo