Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What does "This style has a circular based on list " mean ?

3,416 views
Skip to first unread message

Sudharsan

unread,
Feb 10, 2003, 2:36:55 AM2/10/03
to
Hi

When i am using Style on a word document and when i try marking up TOC on
the document i occassionally get the following error.

"This style has a circular based on list" with an error code 5325.

I am not able to get any relevant info on this. Have you got this before and
whats your suggestion to fix this.

Thanks
Sudharsan


Klaus Linke

unread,
Feb 12, 2003, 11:16:30 PM2/12/03
to
Hi Sudharsan,

It probably means you have some circular reference in your style
definitions (like style A is based on style B, style B on C, and style C is
based on A).

Usually, Word won't let you create styles with such circular references.
You must have found a way around that?
(Look at the style's definition in "Format > Style > Modify...", "Based
on:")

;-) Klaus

Sudharsan

unread,
Feb 13, 2003, 10:27:16 AM2/13/03
to
Hi Klaus
Thanks, but i am not using circular reference. Infact i have only one
style in the whole application !

Thanks indeed

Sudharsan


"Klaus Linke" <fotosatz...@t-online.de> wrote in message
news:eMqGnax0CHA.1636@TK2MSFTNGP12...

Klaus Linke

unread,
Feb 13, 2003, 11:21:23 AM2/13/03
to
> Thanks, but i am not using circular reference. Infact i have only
> one style in the whole application !
>
> Thanks indeed
>
> Sudharsan


You mean one style in addition to the five that are always present (Normal,
Heading 1, 2, 3, and Default Paragraph Font)?

Regards,
Klaus

Klaus Linke

unread,
Feb 13, 2003, 11:44:37 AM2/13/03
to
... and how are you creating the TOC if the whole document is formatted in
the same style?

Klaus

Sudharsan

unread,
Feb 14, 2003, 12:31:33 AM2/14/03
to
Hi Klaus
I am using only Heading 1 as style. I had mentioned before that this
error occurs only ocassionally. I believe it happens whenever the TOC markup
fails internally. So the next time i markup on the same document it tries to
set the STYLE again. I am setting style as below.


Set objStyle = objActiveDoc.Styles.Add(Name:="Heading_1_Char",
Type:=wdStyleTypeCharacter)
objActiveDoc.Styles("Heading_1_Char").LinkStyle = "Heading 1"
objStyle.LinkStyle = "Heading 1"

I am capturing the error and in the error handler routine i try deleting the
style, which i believe is not the right thing to do. clearing the style
might help, how how will i do that??

Sudharsan

"Klaus Linke" <fotosatz...@t-online.de> wrote in message

news:usYXm830CHA.1596@TK2MSFTNGP09...

Klaus Linke

unread,
Feb 14, 2003, 11:43:10 AM2/14/03
to
Hi Sudharsan,

I'm not familiar with any method called "LinkStyle".
Is it something you wrote yourself? What does it do?

And you probably don't need to run it twice...

objActiveDoc.Styles("Heading_1_Char").LinkStyle = "Heading 1"

is the same as
objStyle.LinkStyle = "Heading 1"
since that's the way you defined objStyle.

Regards,
Klaus

Cindy Meister -WordMVP-

unread,
Feb 19, 2003, 8:59:22 AM2/19/03
to
Hi Klaus,

> I'm not familiar with any method called "LinkStyle".
> Is it something you wrote yourself? What does it do?
>

this was new in Word 2002, and it links the definitions of
styles together. I don't really understand WHY it's there,
or why one would use it...

I suspect it's the result of that new nastiness, where Word
2002 creates "Char" styles whenever you select text (rather
than paras) and apply a paragraph style. I did some
extensive testing with it when Word 2002 first came out,
and it was a good way to make a document unuseable :-)

Sudharsan, can you tell us WHY on earth you're using
LinkStyle? I imagine it's the cause of your problems...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jan 24 2003)
http://www.mvps.org/word

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

Sudharsan

unread,
Feb 19, 2003, 10:40:01 AM2/19/03
to
Hi Cindy
I am generating TOC on a word document and to get the "Link" effect in
TOC i am using this. When i
use linkstyle like

objWrd.LinkStyle = "Heading 1"

in Word2002 it is giving me a perfect TOC. But this doesnt work in
Word2000 and i am not sure how to replicate this..

I want to create a simple Link for each item on the generated TOC.

I know this lands me in a mess and i would love to see the other
approach.

Thanks a lot
Sudharsan

"Cindy Meister -WordMVP-" <CindyM...@swissonline.ch> wrote in message
news:VA.000072d7.004d6de6@speedy...

Cindy Meister -WordMVP-

unread,
Feb 19, 2003, 12:45:13 PM2/19/03
to
Hi Sudharsan,

OK, I'm going to try and break this up into "bite size pieces", since
there are a number of things involved. The simplest/clearest, first:

LinkStyle is new in Word 2002, so the code will not function in Word
2000. That's a given, it's set, it's clear.

So, now we have to understand what you're trying to achieve, and that's
not at all clear to me. We definitely have a language barrier, here, but
let's see if we can sift out a common terminology/understanding.

What I don't understand, yet, is what you're trying to accomplish with
LinkStyle. What kind of "Link" effect is it you're hoping for in the
TOC? Do you mean hyperlinking back to the Heading 1 paragraphs?

Or do you somehow want to affect the font formatting of the TOC,
itself, so that the entries look the same as the Heading 1 text in the
document?

LinkStyle really has nothing whatsoever to do with a TOC, per se. I get
the feeling that you're using this to do something with Word I wouldn't
consider "usual", and I'm having trouble understanding what that is.

What .LinkStyle is meant to do is associate a character style with a
paragraph style: if you change the font definition of one, the other's
definition will change to match. That's all it should be used for (and
at that only sparingly).

> I am generating TOC on a word document and to get the "Link" effect in
> TOC i am using this. When i
> use linkstyle like
>
> objWrd.LinkStyle = "Heading 1"
>
> in Word2002 it is giving me a perfect TOC. But this doesnt work in
> Word2000 and i am not sure how to replicate this..
>
> I want to create a simple Link for each item on the generated TOC.
>

Cindy Meister

0 new messages