Re: How do I setup a repeating table header in Word that marks tab
From: Tom N (TomN_at_discussions.microsoft.com)
Date: 11/01/04
- Previous message: Nick: "Copy *** from one workbook to another."
- In reply to: Cindy M -WordMVP-: "Re: How do I setup a repeating table header in Word that marks tab"
- Next in thread: Cindy M -WordMVP-: "Re: How do I setup a repeating table header in Word that marks tab"
- Reply: Cindy M -WordMVP-: "Re: How do I setup a repeating table header in Word that marks tab"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Nov 2004 14:53:03 -0800
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
"Cindy M -WordMVP-" wrote:
> 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 :-)
>
>
- Previous message: Nick: "Copy *** from one workbook to another."
- In reply to: Cindy M -WordMVP-: "Re: How do I setup a repeating table header in Word that marks tab"
- Next in thread: Cindy M -WordMVP-: "Re: How do I setup a repeating table header in Word that marks tab"
- Reply: Cindy M -WordMVP-: "Re: How do I setup a repeating table header in Word that marks tab"
- Messages sorted by: [ date ] [ thread ]