Navigating with a Text Box Control Object

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

Guest

I want to create a presentation in which I can use the Text box control
object to navigate the user to other slides.WHat I'm trying to do is to have
the box on the first slide, and then assign a prompt to each subsequent slide
sodepending on what is input it will determine which slide is next. For
instance if I named the forth slide Dog, I would want to be able to enter a
word into the text box (in this case probably the word "dog"), execute that
and be directed to slide 5. I am not really sure if this is at all possible.
 
That's similar...except rather than selecting the slide from a list or
drropdown, I'd like to be able to type it in......similar to a password type
of idea. Thanks forthe site though.
 
Can you create a text box with the control tool box, double click on it
to get into the TextBox1_Change macro and type something like:

Select Case TextBox1.Text
Case "dog"
ActivePresentation.SlideShowWindow.View.GotoSlide 5
Case "cat"
ActivePresentation.SlideShowWindow.View.GotoSlide 6
Case "cow"
ActivePresentation.SlideShowWindow.View.GotoSlide 6
End Select

--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/
 
Thanks a lot David, your soultion did what i wanted it to do. I am new to
the whole programming world, and wouldn't have gotten to that on my own. I
was curious as to how you would add a time delay before it responded to the
input, for instance
after typing dog, the screen remains that way for 2 secondds and then
proceeds on to its designated slide. Also I was just curious if activeX uses
its own coling language or is it just a set programming code.
Thanks for your help!!
~Jon
 
Oh and one more question,
Is there a way to have the text box control object start blank whenever that
slide is viewed, because currently if i reroute a slide back to my inital
text box slide, the last entry still reamins inserted.
 
Example 8.5 on my site covers delays:

http://www.PowerfulPowerPoint.com/

Click on "Examples by Chapter" and "Chapter 8." Just write the Wait
procedure from the example, but set it to 2 seconds instead of 5. Then
stick the word Wait in the code before the lines that jump.

--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/
 
Off the top of my head, I think you would want TextBox1.Text = "" to go
just before you jump to 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/
 
Oh and one more question,
Is there a way to have the text box control object start blank whenever that
slide is viewed, because currently if i reroute a slide back to my inital
text box slide, the last entry still reamins inserted.

Select Case TextBox1.Text
Case "dog"
ActivePresentation.SlideShowWindow.View.GotoSlide 5
Case "cat"
ActivePresentation.SlideShowWindow.View.GotoSlide 6
Case "cow"
ActivePresentation.SlideShowWindow.View.GotoSlide 6
End Select

after this add:

TextBox1.Text = "" ' to clear the contents

That'll clear the text box when you leave the slide rather than when you
come back, but empty's empty, right?
 
This Command works almost too well, because it forces the text box to always
remain empty, and will not allow me to enter text at all. I can click on it
and the cusor begins to flash, however no characters will show up. But you
were right it doesn't matter if the slide clears after advanceing or when
returning.
 
Yes, Steve's code will do that to you. You actually need to put the added
line in each section of the case statement because you only want the text
cleared after a correct word is entered. If you put it at the end of the
TextBox1_Change procedure, it will happen every time anything changes in
the text box (type a character and immediately clear a character). You
never have a chance to a whole word.
--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/
 
This Command works almost too well, because it forces the text box to always
remain empty, and will not allow me to enter text at all. I can click on it
and the cusor begins to flash, however no characters will show up. But you
were right it doesn't matter if the slide clears after advanceing or when
returning.

Kind of like Microsoft Security improvements. They don't make things any more
secure, they just keep you from doing the things that let insecurities creep in!

Only here we fess up and fix. ;-)

Forgot that this was in the change event, so

and so on.

That way it only blanks if something *triggers* a go to slide response.
 
Is there a way that I can place a delay before the next slide without using
the input box as is used in the demo (scene below), forinstance just put
something after the Case command or something, or before the go to slide
portion. All other things are working well though!
 
I usually have a line or a box off the slide and delay it's entry for the
amount of time I want before going to the next slide

--
<>Please post all follow-up questions/replies to the newsgroup<>
<><>Email unless specifically requested will not be opened<><>
<><><>Do Provide The Version Of PowerPoint You Are Using<><><>
<><><>Do Not Post Attachments In This Newsgroup<><><>
Michael Koerner [MS PPT MVP]


| Is there a way that I can place a delay before the next slide without
using
| the input box as is used in the demo (scene below), forinstance just put
| something after the Case command or something, or before the go to slide
| portion. All other things are working well though!
|
| "David M. Marcovitz" wrote:
|
| > Example 8.5 on my site covers delays:
| >
| > http://www.PowerfulPowerPoint.com/
| >
| > Click on "Examples by Chapter" and "Chapter 8." Just write the Wait
| > procedure from the example, but set it to 2 seconds instead of 5. Then
| > stick the word Wait in the code before the lines that jump.
| >
| > --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/
| >
| > | >
| > > Thanks a lot David, your soultion did what i wanted it to do. I am
| > > new to the whole programming world, and wouldn't have gotten to that
| > > on my own. I was curious as to how you would add a time delay before
| > > it responded to the input, for instance
| > > after typing dog, the screen remains that way for 2 secondds and then
| > > proceeds on to its designated slide. Also I was just curious if
| > > activeX uses its own coling language or is it just a set programming
| > > code. Thanks for your help!!
| > > ~Jon
| > > "David M. Marcovitz" wrote:
| > >
| > >> Can you create a text box with the control tool box, double click on
| > >> it to get into the TextBox1_Change macro and type something like:
| > >>
| > >> Select Case TextBox1.Text
| > >> Case "dog"
| > >> ActivePresentation.SlideShowWindow.View.GotoSlide 5
| > >> Case "cat"
| > >> ActivePresentation.SlideShowWindow.View.GotoSlide 6
| > >> Case "cow"
| > >> ActivePresentation.SlideShowWindow.View.GotoSlide 6
| > >> End Select
| > >>
| > >> --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/
| > >>
| > >> | > >>
| > >> > That's similar...except rather than selecting the slide from a list
| > >> > or drropdown, I'd like to be able to type it in......similar to a
| > >> > password type of idea. Thanks forthe site though.
| > >> >
| > >> > "Chirag" wrote:
| > >> >
| > >> >> Visit the following link for a similar (if not the same) feature:
| > >> >> Use Slide Navigator on PowerPoint slides
| > >> >> http://officeone.mvps.org/protools/protools_slide_navigator.html
| > >> >>
| > >> >> - Chirag
| > >> >>
| > >> >> PowerShow - View multiple PowerPoint slide shows simultaneously
| > >> >> http://officeone.mvps.org/powershow/powershow.html
| > >> >>
| > >> >> | > >> >> >I want to create a presentation in which I can use the Text box
| > >> >> >control
| > >> >> > object to navigate the user to other slides.WHat I'm trying to
| > >> >> > do is to have
| > >> >> > the box on the first slide, and then assign a prompt to each
| > >> >> > subsequent slide
| > >> >> > sodepending on what is input it will determine which slide is
| > >> >> > next.
| > >> >> > For instance if I named the forth slide Dog, I would want to be
| > >> >> > able to enter a
| > >> >> > word into the text box (in this case probably the word "dog"),
| > >> >> > execute that
| > >> >> > and be directed to slide 5. I am not really sure if this is at
| > >> >> > all possible.
| > >> >>
| > >> >>
| > >> >>
| > >> >
| > >>
| > >>
| >
| >
 
No input or msg boxes are necessary. You want to use the Wait procedure
in the example. If you include the Wait procedure in your module, you can
put the word Wait in your code wherever you want to wait:

Case "dog"
Wait
ActivePresentation.SlideShowWindow.View.GotoSlide 5

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