Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Launching PPT from VB

Posted on 2003-10-24
3
Medium Priority
?
291 Views
Last Modified: 2010-05-01
Hi All,
ICan someone help me with a Vb code which can launch a Power Point Macro from a
stand alone VB application. I have been stuck in this problem since long.
 
Thanks in advance,
Lonely
0
Comment
Question by:LonelyVB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 200 total points
ID: 9613359
you could try something like


Sub h()
Dim PPApp As Object
Dim myp As Object
Set PPApp = CreateObject("PowerPoint.Application")
PPApp.Visible = True
Set myp = PPApp.Presentations.Open("c:\temp\myprez.ppt")
PPApp.Run ("myprez.ppt!Module1.t")
End Sub

where
myprez is your presentation name
Module1 is your module name in the presentation
t is the name of the public sub you're calling

hope this helps a bit
0
 

Author Comment

by:LonelyVB
ID: 9614222
Hi Bruintje,
Thanks for the reply to my query.

I tried the code and it works wonderfully. I was able to launch the macro from my VB application. Thanks a million for the same.

Lonely
0
 
LVL 44

Expert Comment

by:bruintje
ID: 9615146
cool, glad you got it solved :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question