Text Boxes appearing on more than one slide

E

easy

I have added a text box to a slide via VBA which when you enter any
text into it it appears on another slide in a different text box. This
works great but if I link from a slide with the text box on to a custom
show, the text box appears in the custom show slide even though the
text box isn't contained in the slide.
Does anybody know how to stop this happening?

Cheers
(nice and easy please - this is my first post here)
 
D

David M. Marcovitz

You want nice and easy, and you're messing with VBA?!? Are you talking
about a control textbox or a regular text box? Do you have any code you
could post for us to look at?
--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/
 
E

easy

David said:
You want nice and easy, and you're messing with VBA?!? Are you talking
about a control textbox or a regular text box? Do you have any code you
could post for us to look at?
--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/
Heres the code
I have for one of the control text boxes (not regular text boxes)

Private Sub TxtHole1_Change()
Dim speechbox As String
speechbox = TxtHole1.Text
Slide162.Hole1.Text = speechbox
Slide163.Hole1.Text = speechbox
Slide219.Hole1.Text = speechbox
End Sub

The problem only appears when switching to a custom show the text boxes
remain on screen
 
D

David M. Marcovitz

Heres the code
I have for one of the control text boxes (not regular text boxes)

Private Sub TxtHole1_Change()
Dim speechbox As String
speechbox = TxtHole1.Text
Slide162.Hole1.Text = speechbox
Slide163.Hole1.Text = speechbox
Slide219.Hole1.Text = speechbox
End Sub

The problem only appears when switching to a custom show the text
boxes remain on screen

Thanks for oposting the code. I did a little test and was not able to
reproduce the problem. The thing I notice is that you have in excess of
200 slides. In and of itself this is not a problem for PowerPoint.
However, PowerPoint has a limited amount of space to store hyperlink
information. I wonder if the large number of slides (and presumably a lot
of hyperlinks) is interfering with something. This is a bit of grasping
at straws, but the basic code you have presented is fine and should work.

One other possibility comes to mind. Is there any chance that you have
some kind of chain effect of changing one text box using the code above,
which in turn change the Hole1 text box on slide 162. Then on slide 162,
you have a Sub Hole1_Change procedure that changes the text box on
another slide. Thus, if you change something on one text box, it changes
something on slide 162, which triggers another procedure to change
something on another slide.

--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/
 
E

easy

David said:
Thanks for oposting the code. I did a little test and was not able to
reproduce the problem. The thing I notice is that you have in excess of
200 slides. In and of itself this is not a problem for PowerPoint.
However, PowerPoint has a limited amount of space to store hyperlink
information. I wonder if the large number of slides (and presumably a lot
of hyperlinks) is interfering with something. This is a bit of grasping
at straws, but the basic code you have presented is fine and should work.

One other possibility comes to mind. Is there any chance that you have
some kind of chain effect of changing one text box using the code above,
which in turn change the Hole1 text box on slide 162. Then on slide 162,
you have a Sub Hole1_Change procedure that changes the text box on
another slide. Thus, if you change something on one text box, it changes
something on slide 162, which triggers another procedure to change
something on another slide.

--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/

David
Thanks for the response
There aren't that many hyperlinks contained in the presentation so I
dont think it is that (but may be wrong!) And I can re create the error
with a new presentation with just 3 slides.

Here how if you want to try and replicate:
Create a 3 slide presentation:
Slide 1 - index
Slide 2 - custom show 1
Slide 3 - custom show 2
Then add a text box from the control panel (it also happens with other
controls such as tick box) to each slide - in different position on
each slide and type text into each text box to identify which screen it
is on.
Create 2 custom shows
Show 1 contains just slide 2 (custom show 1)
Show 2 contains just slide 3 (custom show 2)
Put 2 buttons on slide 1 (index) each linked to a custom show (select
show & return)

When you run the presentation from the index, the text box on the index
also appears in each of the custom shows.
Let me know if you get the same problem
 
D

David M. Marcovitz

David
Thanks for the response
There aren't that many hyperlinks contained in the presentation so I
dont think it is that (but may be wrong!) And I can re create the
error with a new presentation with just 3 slides.

Here how if you want to try and replicate:
Create a 3 slide presentation:
Slide 1 - index
Slide 2 - custom show 1
Slide 3 - custom show 2
Then add a text box from the control panel (it also happens with other
controls such as tick box) to each slide - in different position on
each slide and type text into each text box to identify which screen
it is on.
Create 2 custom shows
Show 1 contains just slide 2 (custom show 1)
Show 2 contains just slide 3 (custom show 2)
Put 2 buttons on slide 1 (index) each linked to a custom show (select
show & return)

When you run the presentation from the index, the text box on the
index also appears in each of the custom shows.
Let me know if you get the same problem

I need a little more information because from what you have described,
the presentation is behaving just as it should. Which text boxes have a
_Change procedure associated with them, and which boxes do they change?
In your example, when the text on slide 1 changes, is it supposed to
change slides 2 and 3? In your original example, the text box was
supposed to change the text in text boxes on slides 162, 163, and 219.
--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/
 
E

easy

The issue is not with the content of the text boxes, in the example
above there is no code attached to the text boxes, its just the text
box appearing on the wrong screen as though when you move to a
different screen the text box does not appear?
Can I e mail you the 3 slide example? - dont know if this allowed as
this is my first time on this (or any) group

Or if this works the file is here
http://www.myfilehut.com/userfiles/21210/Example.ppt
 
D

David M. Marcovitz

OK. I thought it had to do with the code that you posted that caused
certain text boxes to change when you typed in other text boxes.
Unfortunately, for you, the presentation you posted has no problems on my
machine; it works just as it is supposed to. If that exact presentation
doesn't work for you, then the problem is with your machine (not with the
presentation or with the code).

Here are some generic things to try:

1. Start up PowerPoint and choose Check for Updates from the Help menu.
Be sure you have all the latest patches applied. If you are using 2003,
then be sure that you are getting Service Pack 1 and/or 2.
2. Also in the Help menu, try Detect and Repair to see if your version of
PowerPoint needs any adjustments.
3. Go to your video driver's manufacturer's Web site and be sure you have
installed the latest video drivers for your video card.
4. Turn down graphics hardware acceleration. Check this out for more
information about that: http://www.rdpslides.com/pptfaq/FAQ00129.htm

I'm not sure what else to suggest because I can't replicate the problem.

--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/
 
E

easy

David
What version of PP have you tried it on?
I have tried on three different machines all running 2000 and they all
have the same problem (which should eliminate the machine issue)
Did you use the buttons on the example to step through the
presentation? If you just use page down or enter etc top step through,
the problem doesn't appear its only when you use custom shows.
 
D

David M. Marcovitz

I'm using 2003, so whatever is causing this might have been fixed since
2000. I did use the buttons to navigate. No matter what I did, I couldn't
generate a problem. Sorry, I'm out of suggestions.
--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

Top