0

I have a requirement, PPT VBA add-in open-source to run from console/command prompt.

Is it possible ?

PPspliT is the open source project which needs to run from command prompt.

Thanks

Narayan Subedi
  • 1,343
  • 2
  • 20
  • 46
  • PPspliT's author provides the full VBA source code. You could include this in e.g. a VB6 EXE that automates PPT using pretty much the same code. – Steve Rindsberg Dec 12 '17 at 18:53
  • @SteveRindsberg I talked with author too. But the source code is for GUI, so, how it will be compatible for CUI i.e console base ? Thanks – Narayan Subedi Dec 13 '17 at 14:50
  • I just had a quick look at the source; it appears that you'd have to at a minimum modify it so that it works on the current presentation rather than current selection, then surround it with code that invokes PPT and opens the presentation you want to process. Not simple, but a whole lot easier than reproducing all of Massimo's work yourself. – Steve Rindsberg Dec 13 '17 at 16:47
  • @SteveRindsberg, We do not want to open PPT, everything should happen in background. The console base app should take input as ppt file, split slide animation and save it. Same like PPspliT but everything should be done in background. Is it possible with this source code ? Thanks – Narayan Subedi Dec 13 '17 at 17:53
  • No, it's not possible with this source code, though it's possible to automate PPT w/o PPT appearing in most cases. That requires an installed copy of PPT, of course. – Steve Rindsberg Dec 14 '17 at 17:15
  • @SteveRindsberg, I am sorry but do get it clearly. What does mean by `automate PPT w/o PPT appearing`, does this mean like, we can run from command line ? – Narayan Subedi Dec 15 '17 at 15:37
  • 1
    Google terms like "automate powerpoint" for examples of "driving" powerpoint from another program. Your program can launch an instance of PowerPoint without making it visible if you wish. – Steve Rindsberg Dec 16 '17 at 16:39

1 Answers1

0

You can't execute VBA directly from the command prompt; it is not the same as VBS.

You could however open Powerpoint from the command prompt and execute the required code that way. See this.

ashleedawg
  • 20,365
  • 9
  • 72
  • 105