E
emailceloftis
Using VS2005, VB.NET
I am automating PowerPoint to delete an existing module, add a new
module then execute the module. The code below works great when
debugging... but when I let the execution flow without breakpoints the
following error is generated by the code module copied into the PPT
presentation:
Application (unknown member) invalid request. there is no active
presentation.
After the error the PPT object becomes visible - at that point I
notice that there is not presentation open, just a VB Editor in a
blank PPT frame.
I have tried inserting Thread.Sleep(2000) and oPres.Save() just before
the call the execute the module code, but I still get the same result.
Anyone have any idea what is going here?
I am automating PowerPoint to delete an existing module, add a new
module then execute the module. The code below works great when
debugging... but when I let the execution flow without breakpoints the
following error is generated by the code module copied into the PPT
presentation:
Application (unknown member) invalid request. there is no active
presentation.
After the error the PPT object becomes visible - at that point I
notice that there is not presentation open, just a VB Editor in a
blank PPT frame.
I have tried inserting Thread.Sleep(2000) and oPres.Save() just before
the call the execute the module code, but I still get the same result.
Anyone have any idea what is going here?