S
Susan Parker
Can I do this?
Word 2000 on Windows 2000 Pro.
We have Word tables that are created with SAS as RTF. The long and
short of what we need to do is pull the document header and footer
into the body of the document, but we have a table that spans perhaps
several pages and so, we need to split the table onto each page. The
column headings are automatically repeated at the top of each page.
So I want to split the table, but keep the column headings with each
split part.
I'm trying to do all of this with VBA, so we can build it into a
template and automatically process each document.
Any suggestions are greatly appreciated.
I think if I knew what collection to cycle through (since there is no
page collection) or how to test that I'm at the top of the document or
at the bottom of the document, that I could make some progress.
I also think I need to start splitting the table starting with the
last page and working my way backward, so as to preserve the rows of
the table that are on each page already. That way I should have
sufficient room to put the table headings on the page and should also
be ok for room when I pull the document header and footer into the
body of the document.
Thanks!
Sue
Word 2000 on Windows 2000 Pro.
We have Word tables that are created with SAS as RTF. The long and
short of what we need to do is pull the document header and footer
into the body of the document, but we have a table that spans perhaps
several pages and so, we need to split the table onto each page. The
column headings are automatically repeated at the top of each page.
So I want to split the table, but keep the column headings with each
split part.
I'm trying to do all of this with VBA, so we can build it into a
template and automatically process each document.
Any suggestions are greatly appreciated.
I think if I knew what collection to cycle through (since there is no
page collection) or how to test that I'm at the top of the document or
at the bottom of the document, that I could make some progress.
I also think I need to start splitting the table starting with the
last page and working my way backward, so as to preserve the rows of
the table that are on each page already. That way I should have
sufficient room to put the table headings on the page and should also
be ok for room when I pull the document header and footer into the
body of the document.
Thanks!
Sue