I need to recreate this behavior in PPT. I have read how to create a clever
checkbox of reasonable size. But how do I "save" the information of which
boxes have been selected and go to just those presentations?
Thanks,
Peter
If you want to do something more complex, such as have the checks stay
after you have closed the presentation and come back, that will require
VBA. You might want to look at Example 7.10 on my site:
http://www.PowerfulPowerPoint.com/
Just click on "Examples by Chapter" and then "Chapter 7" to find the
example.
--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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:134ibqf...@corp.supernews.com:
Thanks for the response. Picture 4 or 5 menu items with checkboxes in front
of them. The user checks number 1, 3 and 4. The user clicks, say, a button
labeled "Continue" and the presentation associated with No. 1 is started.
When No. 1 is competed, the user goes to No. 3. When No. 3 completes, No. 4
begins.
Next time the menu is run, perhaps the user selects 2, 4 and 5 and the
presentation begins with 2, moves to 4 then 5. And so on.
I expect there is some coding involved and that worries me a bit, because my
brain doesn't seem to be as spry as it once was, but I really need to get
the project completed so I will stretch and hopefully, with the help of kind
folks like you, get sufficient understanding to make it work!
Anyway, I hope my description above is clear.
Regards,
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns9931738F18EC2ma...@207.46.248.16...
Also note the comments. I have assumed in GotoNext that each
"presentation is one slide long, but just changing the numbers after
GotoSlide to correspond to the first slide of each "presentation" will
work.
This was even easier than I thought and it took me longer to add comments
to the code and write this message than to actually write the code.
Let me know if you want me to email you my working sample.
Dim curPresentation As Long
Dim nextPresentation As Long
'Based on which checkboxes are checked on slide 2 and what the current
'"preseentation" is, decide what is the next presentation.
Sub WhatsNext()
If Slide2.CheckBox1.Value = msoTrue And curPresentation < 1 Then
nextPresentation = 1
ElseIf Slide2.CheckBox2.Value = msoTrue And curPresentation < 2 Then
nextPresentation = 2
ElseIf Slide2.CheckBox3.Value = msoTrue And curPresentation < 3 Then
nextPresentation = 3
ElseIf Slide2.CheckBox4.Value = msoTrue And curPresentation < 4 Then
nextPresentation = 4
ElseIf Slide2.CheckBox5.Value = msoTrue And curPresentation < 5 Then
nextPresentation = 5
Else
nextPresentation = 0
End If
End Sub
'This procedure actually goes to the appropriate slide. It should be tied
'to a button at the end of every "presentation."
Sub GotoNext()
WhatsNext 'decide what is next setting the value of nextPresentation
'This assumes that the menu is on slide 2 and that each
'"presentation" is
'on consecutive slides from 2 through 7. If that is not the case,
'just change the numbers after GotoSlide.
Select Case nextPresentation
Case 0
'return to the menu slide when all slides are done
ActivePresentation.SlideShowWindow.View.GotoSlide 2
Case 1
ActivePresentation.SlideShowWindow.View.GotoSlide 3
Case 2
ActivePresentation.SlideShowWindow.View.GotoSlide 4
Case 3
ActivePresentation.SlideShowWindow.View.GotoSlide 5
Case 4
ActivePresentation.SlideShowWindow.View.GotoSlide 6
Case 5
ActivePresentation.SlideShowWindow.View.GotoSlide 7
End Select
curPresentation = nextPresentation
End Sub
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:134ksbi...@corp.supernews.com:
Thank you so very much! I've sent the message to work, where I will study
and attempt to implement. This is great. I may have more questions as it's
been many years since I attempted any VBA programming (and I don't recall a
great deal of success form that experience!).
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns993270EA4E3D6ma...@207.46.248.16...
Thanks anyway,
With kind regards,
Maarten Bal
Maart...@gmail.com
The example is on the way.
--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/
=?Utf-8?B?TWFhcnRlbiBCLg==?= <Maar...@discussions.microsoft.com> wrote
in news:6E74363C-3481-4DE4...@microsoft.com:
Thank you for your sample code. It helps. I just have to spend some time
thinking about my sequencing.
It looks like the checkboxes in you example are slightly larger than the
checkboxes I created. I do not see any way to enlarge the size of the actual
box so how'd you do that? Or is it just an optical illusion?
Thanks again,
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns993270EA4E3D6ma...@207.46.248.16...
Another, unrelated question: I am using a two-color gradient fill as my
background. I have set my checkbox menu items to be transparent, which they
are in the edit screen. In the slide show, however, the checkbox menu items
display with a white background. Why? What am I missing?
Thanks,
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns993270EA4E3D6ma...@207.46.248.16...
Here's my next question: (as described in my off-line message yesterday from
work) my application consists of a series of slides which the viewer has to
evaluate and select Yes or No. At present I am using those words as
hyperlinks and depending upon the choice, the viewer is moved to the linked
slide. I'm not quite clear how I insert your code to work with this
approach. Is this where I alter the code to simply send the viewer to the
appropriate slide number? Should I change from hyperlinked words to buttons
(would that make any difference)? If I understand aright, the last slide in
the series is the one which gets the "continue" button.
In thinking about it, I suspect this last bit about choices on each page may
be a significant wrinkle in the process, because this is a decision tree and
every page can lead to two different places. None the less, once the
'thread' is followed to the 'end' the user should move to the next
presentation. Argh, this seems like it's getting more complicated as I
write! 8-)>
I think I'm going to have to diagram this to get a clearer sense of what the
slide to slide movements can be.
Thanks for listening to me ramble!
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns993270EA4E3D6ma...@207.46.248.16...
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:134rgga...@corp.supernews.com:
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:134rhj4...@corp.supernews.com:
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:134ri8a...@corp.supernews.com:
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns99347C378B371ma...@207.46.248.16...
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:134scv5...@corp.supernews.com:
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns9937A977CAA51ma...@207.46.248.16...
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:1355qep...@corp.supernews.com:
Thank you all for your great ideas and suggestions!
Peter
"David M. Marcovitz" <marco...@loyola.edu> wrote in message
news:Xns993866CC1424Ama...@207.46.248.16...
--
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/
"Peter Morris" <pmarm...@gmail.com> wrote in
news:1359ujp...@corp.supernews.com: