+ Reply to Thread
Results 1 to 4 of 4

how can i call macro in powerpoint file from excel file

  1. #1
    pm
    Guest

    how can i call macro in powerpoint file from excel file

    hello

    is there any possibility of launching macro in ppt from xls?

    rgs

  2. #2
    Howard Kaikow
    Guest

    Re: how can i call macro in powerpoint file from excel file

    "pm" <[email protected]> wrote in message news:[email protected]...
    > hello
    >
    > is there any possibility of launching macro in ppt from xls?


    Create a PowerPoint object and use the Run method on that object.



  3. #3
    pm
    Guest

    Re: how can i call macro in powerpoint file from excel file

    Howard Kaikow napisal:

    > > is there any possibility of launching macro in ppt from xls?

    >
    > Create a PowerPoint object and use the Run method on that object.


    could you help me with syntax?

    Dim PPObj As Object
    Set PPObj = CreateObject("PowerPoint.application")
    With PPObj
    .presentations.Add
    .presentations.Open Filename:="F:\Analizy ISI\pl\prob.ppt"
    .Visible = True

    and how can i run module2 in prob.ppt, which is:

    Sub UpdtAll()

    Dim sld As Slide
    Dim sh As Shape
    For Each sld In ActivePresentation.Slides
    For Each sh In sld.Shapes
    If sh.Type = msoLinkedOLEObject Then
    'update
    sh.LinkFormat.Update
    End If
    Next sh
    Next sld

    End Sub

  4. #4
    pm
    Guest

    Re: how can i call macro in powerpoint file from excel file

    pm wrote:

    > could you help me with syntax?


    ech

    i do it myself

    Public Sub PPTPrint()
    Dim PPObj As Object
    Set PPObj = CreateObject("PowerPoint.application")
    With PPObj
    .presentations.Add
    .presentations.Open Filename:="F:\Analizy ISI\pl\prob.ppt"
    .Visible = True
    .Run "Prob.ppt!UpdtAll"

    and now: saving, printing, closing

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1