How do i make a macro print a slide while showing another?

G

Guest

I am an ICT Student and i am pretty new to alot of fancy coding etc.
I just need a hand on how i can achieve the task i would like doing caus my
teacher is pants.
nyway, i am creating a self-diagnosis powerpoint, and i would like to allow
the user to be able to click on the word (i.e. "yes") and this triggers two
things. Firstly i would like it to print out a different slide, and then
guide to yet another slide.

For example, click yes on slide 1, print slide 2 (without showing it) and
then navigate to slide 3

so far, i have been able to use a hyperlink to get the navigation to work,
but i can't seem to make it print as well. (printer normally works fine)

Any ideas? (i have also tried macro's but i may have missed summin)
 
G

Guest

I presume that i will have to add this to the coding for the macro? and alter
the slide numbers accordingly?
 
G

Guest

The vba pages on PowerPoint Alchemy will give you instructions on using code.

The yes button can be on any slide, the slides printed are 2 to 2 (ie 2!)
change to suit and gotoslide(3) errrrm goes to slide 3! change to suit
 
G

Guest

I have done so, but there is a problem.
I have writen a new macro with this and this only in it

Sub slide17yes()
ActivePresentation.SlideShowWindow.View.GotoSlide (51)
ActivePresentation.PrintOut From:=34, To:=34
End Sub

it is neither printing or changing slide. Have i missed summin?
 
S

Steve Rindsberg

I have done so, but there is a problem.
I have writen a new macro with this and this only in it

Sub slide17yes()
ActivePresentation.SlideShowWindow.View.GotoSlide (51)
ActivePresentation.PrintOut From:=34, To:=34
End Sub

it is neither printing or changing slide. Have i missed summin?

Probably so. Something needs to triger the macro. Draw a button or other shape on
the slide where it gets triggered. Rightclick the button and choose Action Settings.
Set its action to Run Macro and choose your macro name.

Better?
 
G

Guest

yeah, i did that already. I made a text box and went to action settings on
both the actual text and the box. I then changed them to "Run Macro"
"slide17yes" and it doesn't work in the slide show view.
 
S

Steve Rindsberg

yeah, i did that already. I made a text box and went to action settings on
both the actual text and the box. I then changed them to "Run Macro"
"slide17yes" and it doesn't work in the slide show view.

Check your Macro Security settings then.
Tools, Macro, Security. Set it to Medium or lower then restart PPT and try opening the
file again.
 
G

Guest

that seemed to do the trick, thanx (i did not think about restarting the
powerpoint aplication for the "low security" to take effect
 

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