originalxavier
Programmer
Hello all,
I am having some trouble. I am trying to automate some reports where the data is returned to excel and the appropriate charts are created as new sheets. What I am having trouble with is getting the VBA code in Excel to open an existing PowerPoint presentation (with no user input) and paste the slides into the presentation. Here is what I have so far but I am more than willing to completely throw this out for code that works...
Sub test()
Dim report As String
report = "h:\cccreports\ccc_report.ppt"
Presentations.Open filename:=report, _
ReadOnly:=False
Windows("ccc_report.ppt"
.Activate
End sub
When I run this code, I get an error "ActiveX component can't create object." Obviously, something is missing, but I HAVE referenced the PowerPoint 9.0 library.
Any help is appreciated.
I am having some trouble. I am trying to automate some reports where the data is returned to excel and the appropriate charts are created as new sheets. What I am having trouble with is getting the VBA code in Excel to open an existing PowerPoint presentation (with no user input) and paste the slides into the presentation. Here is what I have so far but I am more than willing to completely throw this out for code that works...
Sub test()
Dim report As String
report = "h:\cccreports\ccc_report.ppt"
Presentations.Open filename:=report, _
ReadOnly:=False
Windows("ccc_report.ppt"
End sub
When I run this code, I get an error "ActiveX component can't create object." Obviously, something is missing, but I HAVE referenced the PowerPoint 9.0 library.
Any help is appreciated.