How do I setup a repeating table header in Word that marks table .

T

Tom N

Can I use a macro to mark subsequent pages of a table header with Cont. or a
number? It doesn't seem to be available otherwise.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?VG9tIE4=?=,
Can I use a macro to mark subsequent pages of a table header with Cont. or a
number? It doesn't seem to be available otherwise.
You can certainly use a macro to "walk" the table, inserting new rows that you
populate as "header rows".

But there is no way to change the repeating rows Word generates automatically.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
T

Tom N

This is really unfortunate. The table editor in Word is the best I have ever
seen in any word processor. (I have used lots of them.) However, this feature
is available in almost any other word processor. Why not in Word?

By the way, you answered that this could be done but could I see a little
sample code so that I could understand what you are talking about?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?VG9tIE4=?=,
However, this feature
is available in almost any other word processor. Why not in Word?
I don't know why, except that everyone expects something different from Word,
and the Word team has limited funds for each new version to implement new
features. So they have to pick-and-choose what to do. They try to choose
those features with the largest market value, of course. How they decide that
is their secret .-)
By the way, you answered that this could be done but could I see a little
sample code so that I could understand what you are talking about?
This isn't something I've ever done, and I'm pretty busy with paying work at
the moment, so I don't have any sample code I can just copy in, here. I'd
problably just query the .Information property for each row's range for the
page number. When the page number changes, I'd know I'm on the next page, so
I'd insert a new row just above that range and populate the cells. Then loop
again until I'm no longer in the table. If you don't know how to do any of
that, you can try asking in one of the word.vba newsgroups (beginners, if you
have absolutely no idea; general, otherwise).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
T

Tom N

Hi Cindy,
You don't really need to defend Microsoft to me. I am already a big fan of
theirs. I just think that they should provide this VERY USEFUL feature (if
they haven't already).

However, I don't really think this is as simple as you seem to be implying
and there probably is good reason why Microsoft didn't do it - It's hard! You
need to know quite a lot to do something like this. For example: total height
pixels on a page, number of pixels down from the top of the page for the
first page, the number of height pixels for each row on the page so far (each
can vary depending on how many CR/LF's there are in each row), pixels for
line spacing, header rows, merged rows, etc.

I already know that this is difficult because I have written text handlers
that would do this (though certainly for much simpler uses and with fixed
pitch fonts). That is why I went on the Microsoft forum and asked for help. I
know also that the Word software already knows where the header is going to
be placed (for a Repeating Header) because the headers are repaeating in the
correct place on each page. (The problem is that I don't think that event is
exposed to the object interface.) If you had that information, that you could
simply count the number of times it has happened to a variable. Then you
would have the problem of putting it in the header if that interface is
exposed in the object model (another problem).

Thanks,
Tom
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?VG9tIE4=?=,
Then you
would have the problem of putting it in the header if that interface is
exposed in the object model (another problem).
It's not. Which is why I pointed you to the only method possible.

Cindy Meister
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top