Results 1 to 3 of 3

Thread: Let me re-phase!!!

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    derby,UK
    Posts
    38

    Post

    HOw do you open powerpoint from VB?
    not inside a form!
    just open the application

    anyone ?


    please!!!

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Post

    Use the shell command

    x = shell(""C:\Program Files\MicrosoftOffice\Office\POWERPNT.EXE"")

    Of course you will have to change the path to point to were powerpoint is located.

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Or, better yet, you can instatiate a PowerPoint object. Add a reference to Microsoft PowerPoint 8.0 (or select the highest version you have installed) Object Library, then use something like this:

    Code:
    Private Sub Command1_Click()
        Dim objPowerPoint As New PowerPoint.Application
        
        objPowerPoint.Visible = msoCTrue
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width