title: How to run vbscript function from java?
body: <p>From java code i am able to run the vbscript by using this code</p>
  
  <pre><code>Runtime.getRuntime().exec("wscript C:\\ppt\\test1.vbs ");
  </code></pre>
  
  <p>But want to know how to call the method of vbscript from java..for example in test1.vbs </p>
  
  <pre><code>Set objPPT = CreateObject("PowerPoint.Application")
      objPPT.Visible = True
      Set objPresentation = objPPT.Presentations.Open("C:\ppt\Labo.ppt")
      Set objSlideShow = objPresentation.SlideShowSettings.Run.View
      sub ssn1()
        objPPT.Run "C:\ppt\Labo.ppt!.SSN"
      End sub
  </code></pre>
  
  <p>how to call only ssn1() method from java.Otherwise can we run the macro of a power point from  java code..kindly help!!</p>