×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

open .pps from another .pps

open .pps from another .pps

open .pps from another .pps

(OP)
hi everybody
 im trying to write a macro for the user to open pps file and them click a button and by clicking that button it will run a macro to open another .pps file.

can anybody help me with this.

thank you all

RE: open .pps from another .pps

I use a standard function which will open ANY document that has a default app registered.

CODE

Public Function OpenDocument(DocumentWithPath As String) As Long
    OpenDocument = Shell("RUNDLL32.EXE URL.DLL,FileProtocolHandler " & DocumentWithPath, vbNormalFocus)
End Function

In your macro you can then use

CODE

x = OpenDocument("c:\mydoc.ppt")

Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting

Steam Engine enthusiasts: www.essexsteam.co.uk

RE: open .pps from another .pps

(OP)
thanks this does work but it displays an alert
i tried to do application.displayalerts = false
but the message still comes up

the message says:
"The command cant be performed because a dialog box is open. please close open dialog boxes to continue."

the message only lets me click ok, when i click ok and exit the slideshow, it than opens the slideshows i want.

i need for when the macro runs, the spreadsheet opens simultaneously.

thanks

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources