Thank you for this. There should be only two or one columns, so do I just
leave out the else bit?
Thanks
Sol
On 3/10/05 13:29, in article uAX3KYByFHA.448@TK2MSFTNGP11.phx.gbl, "Stefan
Blom" <no.spam@please.xyz> wrote:
Are you sure that you would never run the macro in a document that has
more than two columns? Then you could perhaps skip the "Else" part.
However, I would recommend that you (under Case Else) repeat either of
the calls to the SetCount method. For example:
t.SetCount 1
That way, the macro is logically complete, in the sense that it covers
all possible cases.

Signature
Stefan Blom
Microsoft Word MVP
> Thank you for this. There should be only two or one columns, so do I just
> leave out the else bit?
[quoted text clipped - 28 lines]
> > End Select
> > End Sub
Sol Apache - 03 Oct 2005 15:50 GMT
You are probably right Stefan - I should cover all instances. The macro is
in a button in a template where the user can make the Table of Contents
section either one column or two column. It¹s unlikely the users would know
how to create columns, but I can always be proved wrong.
Thanks very much for your help. Your macro works beautifully.
Sol
On 3/10/05 14:08, in article Oc3$cuByFHA.2848@TK2MSFTNGP15.phx.gbl, "Stefan
Blom" <no.spam@please.xyz> wrote:
> Are you sure that you would never run the macro in a document that has
> more than two columns? Then you could perhaps skip the "Else" part.
[quoted text clipped - 5 lines]
> That way, the macro is logically complete, in the sense that it covers
> all possible cases.
Stefan Blom - 04 Oct 2005 09:03 GMT
I'm glad I could help.

Signature
Stefan Blom
Microsoft Word MVP
> You are probably right Stefan - I should cover all instances. The macro is
> in a button in a template where the user can make the Table of Contents
[quoted text clipped - 17 lines]
> > That way, the macro is logically complete, in the sense that it covers
> > all possible cases.