Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Next Slide (2000)

    Is there any other way to move to the next slide using VBA other than:

    SlideShowWindows(1).View.GotoSlide 3

    The reason I ask is that the above code falls over if the PPS file is run from a web page. Basically all I want the show to do at a certain point is go to the next slide.
    Is there a command like:

    Application.goto.NextSlide

    or similar? Thanks for your help!

  2. #2
    3 Star Lounger
    Join Date
    Nov 2001
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Next Slide (2000)

    I take it then that

    SlideShowWindows(1).View.GotoSlide 3

    is the only way to go to the next slide? Just happens to be slide 3 on this code.
    This code seems error prone. It assumes that the current slideshow is always in the same position on the Windows menu. Further, if you edit your slideshow you have to go in and change every little one of these suckers. Surely there is a more efficient way!

    If you know of one, please let me know! Thanks for your help.

  3. #3
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: Next Slide (2000)

    I'm not sure I understand your situation. Is this a ppt presentation that has been made into a web presentation and is actually stored in HTML? If that's the case you are pretty much limited to VB Script.
    Wendell

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Next Slide (2000)

    A quick look through the object browser suggests that <font face="Georgia">SlideShowWindows(1).View.Next</font face=georgia> may do what you need.

    StuartR

  5. #5
    3 Star Lounger
    Join Date
    Nov 2001
    Posts
    342
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Next Slide (2000)

    Thanks Stuart and Wendell for your input.

    Wendell, just to explain, I load my PPS onto an intranet site and link it to an HTML page via its URL. So when the user looks at the web page s/he reads "To start this mindblowing presentation, click here". When the user clicks on 'click here', the PPS starts.

    The transitions work fine, but on the second slide the show grinds to a halt at the "SlideShowWindows(1).View.GotoSlide 3" command, which is accessed via VB, hence my enquiry as to an alternative way of moving to the next slide.

    The reason for this code is that I've put two text boxes on that slide and the 'login' button tests to ensure that the correct entries are made into those text boxes. Here is the code for that button:

    If UNam.Text = "TUSER1" Then
    If Pword.Text = "TUSER1" Then
    UNam.Text = ""
    Pword = ""
    SlideShowWindows(1).View.GotoSlide 3
    Exit Sub
    Else
    MsgBox "You did not enter the correct Password. Please try again." & vbCrLf & vbCrLf & "Remember to use EXACT CASE.", vbOKOnly, "Incorrect Password"
    'Pword = ""
    Exit Sub
    End If
    End If
    MsgBox "You did not enter the correct Username. Please try again." & vbCrLf & vbCrLf & "Remember to use EXACT CASE.", vbOKOnly, "Incorrect Username"


    Thanks again for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •