G
Guest
All,
I'm struggling with a very vexing problem.
I'm building an application that generates PowerPoint presentations from
data coming from a database.
I start with a PowerPoint "template" that has a couple of macros - I pass
the data to those macros, and they place the data into the appropriate shapes
in the PPT.
One of the slides contains a table. The macro is supposed to work like this:
if there's enough room in the table, place the data into the table. If there
are more rows of data than will fit, copy the slide (several times if
necessary), until there are enough tables to fit all the data. Then place the
data.
This works great, but only about 3/4 of the time!
In other words, if I run the process - everything works great. If I run it
several times in a row, everything works great. But every once in a while, I
get an error from that macro that says "Shape.Table Object doesn't exist"
It's as though, when I duplicate the slide that contains the table, the new
slide SOMETIMES doesn't contain that table.
This happens even if i use the exact same data every time, so it's not
related to any particular piece of data.
Any idea why this might be the case?
Many thanks in advance!
Cheers,
Matt Stuehler
I'm struggling with a very vexing problem.
I'm building an application that generates PowerPoint presentations from
data coming from a database.
I start with a PowerPoint "template" that has a couple of macros - I pass
the data to those macros, and they place the data into the appropriate shapes
in the PPT.
One of the slides contains a table. The macro is supposed to work like this:
if there's enough room in the table, place the data into the table. If there
are more rows of data than will fit, copy the slide (several times if
necessary), until there are enough tables to fit all the data. Then place the
data.
This works great, but only about 3/4 of the time!
In other words, if I run the process - everything works great. If I run it
several times in a row, everything works great. But every once in a while, I
get an error from that macro that says "Shape.Table Object doesn't exist"
It's as though, when I duplicate the slide that contains the table, the new
slide SOMETIMES doesn't contain that table.
This happens even if i use the exact same data every time, so it's not
related to any particular piece of data.
Any idea why this might be the case?
Many thanks in advance!
Cheers,
Matt Stuehler