pop-up and highlighted objects

P

PB LG

I am trying to create a presentation where you can mouse over an object and
it becomes highlighted and a text box appears at the same time but I cannot
get the text to appear on this action. The object highlights but no text
appears. I have tried grouping the text box and object but to no avail. Can
anyone help me?
 
S

Sandy

In 2002/2003 you could, instead of a mouse over, animate
the object to change color using custom animation > add
effect > emphasis. Follow the animation with a "with
previous" for your text and the text will show up when
you click on the object. If you want the color of the
object to change back to it's original color, use the
same "emphasis" steps above, but in reverse and run
it "with previous" on your next animation.
 
D

David M. Marcovitz

Try "Use VBA to make text appear and disappear" from the PPT FAQ:

http://www.rdpslides.com/pptfaq/FAQ00662.htm

It gives two solutions: Sonia's Quick Trick #16 which allows a limited
text box to pop up and doesn't require any VBA, and it gives the VBA
solution. If you don't really need the mouse over effect and a click will
do, you can also use animation triggers (assuming you use PowerPoint 2002
or later).

--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
P

PB LG

David,

Thanks for your first response to my query. I only have PP 2000 here so have
tried to use the VBA from the PPT FAQ as you suggested but I am having
problems.

I am new to VBA and followed the steps in the procedure but could not get
the name of the macro to appear in a list of macros to run in PowerPoint. I
tried to create a new macro following the steps again and it said that there
was a conflict in name so the Peekaboo macro must exist somewhere but why
can't I see it in a list under tools>macro>macros in PP?

I opened the VB editor and added a new module as instructed then pasted the
Sub text from the PPT FAQ and hit debug then run and it asked me for a Macro
name. I don't understand why it does show the name Peekaboo here in the drop
down list. I tried to type in the name peekaboo and click create and was told
there was a naming conflict again.

What is the relationship between VB editor and PP and why can't I get them
to talk to each other? I have tried exporting from VB editor and just saving
the .ppt with the sub text in VB editor but to no avail.

Do you know what I am doing wrong or can you advise me of an alternative
suggestion?

Thanks

Lisa
 
P

PB LG

David,

Does the way I have created the object and text or their format matter? Do
the separate items have to be grouped?

I created a circle using autoshapes and then placed a textbox next to it. I
want the circle to highlight and the text to pop up at the same time as the
mouse hovers over it. I don't really want it to be on a mouse click as
clicking on the autoshape would take the user to another slide which I have
set up as a hyperlink.

I am unsure how to proceed now after several attempts.

Lisa
 
D

David M. Marcovitz

Lisa,

You might want to check out some of the examples on my Web site to see
how they work:

http://www.loyola.edu/education/PowerfulPowerPoint/

None of them do exactly what you want, but some of them cover the same
ideas.

VBA is the scripting language that is built into PowerPoint. The VBA code
is part of the PowerPoint presentation. When you write a procedure, (the
thing starting with a Sub and ending with an End Sub), you can tie that
procedure to a button or other object or text. You do this from within
PowerPoint by choosing the object you want, going to the Slide Show menu,
and choosing Action Settings. The action you want is to Run Macro. When
you choose that, the drop down menu below to Run Macro should list all of
the procedures (Subs) that you have written in the VBA editor. When you
click on the button (in Slide Show mode), it will run the VBA procedure.

You can also run a procedure by choosing Macro and then Macros from the
Tools menu (within PowerPoint, not the VBA Editor). There you should see
a list of your macros. You can select one of them to run.

Finally, you can run a macro from within the VBA Editor, by choosing Run
Sub/User Form from the Run menu. It wil run whatever macro your cursor is
in.

For the Peekaboo code, you must be running in Slide Show View, and the
shape on which you want to hide the text must be the one that is tied to
the Peekaboo procedure.

Be sure that you are only using one module. If you have two, you will
just be confused (that could account for the two PeekABoo procedures when
you only see one).

Another issue that you might be having is that you might have more than
one PowerPoint presentation open. If you have two presentations open, you
might have accidentally put the macro in the wrong one. It is very
confusing in the VBA editor and hard to keep track of which Module 1 you
are working in.

I hope this clears up your confusion rather than makes it worse. Let us
know when you have more questions.

--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
D

David M. Marcovitz

Aha! The text should be part of the autoshape. Right click on the
autoshape and choose Add Text. The Peekaboo code will not work if the
text is in a separate text box.

If you want the text to be in a separate text box,there are other ways to
make that work with other VBA code.

The action settings can be set for mouse over or mouse click.
--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
P

PB LG

David,

I have just got peekaboo to run for the text boxes as I realised my own
mistake of trying to apply the macro to the shape not the text. Ooops!

The only problem is that I do want the text to pop up at the same time as
the circular autoshape is highlighted not separately as it does now. Is this
possible?

I have an image of a map with different countries on it. The map is too busy
to have all the country names on it at once. This is why I wanted the country
names to simply pop up when hovering over each in turn. I also added circular
autoshapes on each country to create hyperlinks to separate slides containing
information about the individual country. I thought I could have the effect
where the hyperlink on each county highlights to indicate that it will
advance to another page and the country name appears too, like on a webpage
or when you highlight over a individual commands on a toolbar and
comment/explanation appears.

Am I getting a bit too ambitious for PowerPoints capabilities?

I do appreciate your continued advice and support - many thanks!

Lisa
 
D

David M. Marcovitz

As I mentioned in my earlier response (which probably crossed with this
message), you do want to apply the procedure to the shape, but you want
the text to be part of the shape (right-click on shape and add text). You
can get the shape to highlight in a number of ways. It is certainly
easier if the text is part of the shape and you are clicking on the
shape.

I don't think you are getting too ambitious for PowerPoint. See what
happens if you attach the text to the shape. Be sure to check the box for
"highlight when mouse over" in the action settings.

--David

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

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

Top