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
Post a Comment