vbscript - Presentations.Open requires PowerPoint 2007 to be open? -


i have macro runtest in powerpoint file test.pptm wish call using following vb script. works when script called on machine office 2010, script work office 2007 providing powerpoint application has been opened before calling script. i'd interested hear whether has experienced similar problem, or hear of potential solutions.

option explicit on error resume next  runprocess  sub runprocess()       dim pptapp      dim pptpresentation      set pptapp = createobject("powerpoint.application")      set pptpresentation = pptapp.presentations.open("c:\test.pptm", true)      pptapp.run "test.pptm!runtest"     pptapp.quit      set pptpresentation = nothing      set pptapp = nothing    end sub  

i resolved problem adding

    pptapp.visible = true 

after creating pptapp , before opening presentation.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -