S
scotty.addams
I would like to be able to programmatically create a PowerPoint Slide
object in the Visual Basic Environment. Since this code will need to
reside within or be activated by the slide, I would like to know how to
programmatically add a Slide Module to the Visual Basic Editor. I
already know how to add code to an already existing Slide Module from a
remote application, but not how to add the actual Module. I thought
that by adding a new slide the corresponding code module would be
created. Below is the code I use to add code from another application.
Trying to use the Add method ends with no results; no error or Slide
Code page.
objPPTApp.VBE.VBProjects("PPTWeb").VBComponents(1).CodeModule.InsertLines(1,
strCode)
object in the Visual Basic Environment. Since this code will need to
reside within or be activated by the slide, I would like to know how to
programmatically add a Slide Module to the Visual Basic Editor. I
already know how to add code to an already existing Slide Module from a
remote application, but not how to add the actual Module. I thought
that by adding a new slide the corresponding code module would be
created. Below is the code I use to add code from another application.
Trying to use the Add method ends with no results; no error or Slide
Code page.
objPPTApp.VBE.VBProjects("PPTWeb").VBComponents(1).CodeModule.InsertLines(1,
strCode)