R
RWN
I'm not sure where to post this (VBA, Application Errors??).
I am generating a document template from a csv file in VBA. In the
template I have five styles ("Heading 1, 2, 3, Body Text and a user
defined style "shd"). The styles are applied by the macro based on a
value in the csv file.
There are 13 Heading 1's, 168 Heading 2's & 101 Heading 3's. The "shd"
are made equal to the H1 & 2's, therefore there are 269. There is also
a header that picks up the Heading 1 via a "StylRef" command.
Both the Heading 2 & 3 styles have the "shd" style as the target for the
"Format the following paragraph as" parameter.
In its "full blown" incarnation (including the body text) the document
runs to 75 pages.
It works well except that part way through the execution it gives me the
subject message and tells me to do a "full save".
I've found that if I simply say "OK" it will continue but keep coming up
with the message.
As a workaround I periodically save the template from within the macro
(on each "Heading 1" or every 30 "Heading 2"'s).
This works, but I'd like to know what the meaning of the message is.
I "Googled" but all I can find are references to Tables/Borders, Macs
and an MS article on Wd2002 (this is happening in Wd2k & '97). There are
no tables, numbering, nor anything else except the five styles, in the
document. I can trigger this error just using the Headings alone.
Before I post my code (it's possible that, not an expert, my error could
be the way I am doing it) I was just wondering if, given the above,
anyone can tell me what this error is trying to tell me?
I am generating a document template from a csv file in VBA. In the
template I have five styles ("Heading 1, 2, 3, Body Text and a user
defined style "shd"). The styles are applied by the macro based on a
value in the csv file.
There are 13 Heading 1's, 168 Heading 2's & 101 Heading 3's. The "shd"
are made equal to the H1 & 2's, therefore there are 269. There is also
a header that picks up the Heading 1 via a "StylRef" command.
Both the Heading 2 & 3 styles have the "shd" style as the target for the
"Format the following paragraph as" parameter.
In its "full blown" incarnation (including the body text) the document
runs to 75 pages.
It works well except that part way through the execution it gives me the
subject message and tells me to do a "full save".
I've found that if I simply say "OK" it will continue but keep coming up
with the message.
As a workaround I periodically save the template from within the macro
(on each "Heading 1" or every 30 "Heading 2"'s).
This works, but I'd like to know what the meaning of the message is.
I "Googled" but all I can find are references to Tables/Borders, Macs
and an MS article on Wd2002 (this is happening in Wd2k & '97). There are
no tables, numbering, nor anything else except the five styles, in the
document. I can trigger this error just using the Headings alone.
Before I post my code (it's possible that, not an expert, my error could
be the way I am doing it) I was just wondering if, given the above,
anyone can tell me what this error is trying to tell me?