Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Eric G
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

Hello,

I've searched the net and the MS knowledgebase, but can not find any detailed specification over exactly what properties are inherited when "Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

Every setting which hasn't been explicitly modified in the newly
created style will be inherited from the parent. See
http://www.shaunakelly.com/word/styl...esCascade.html.

--
Hälsningar
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hello,

I've searched the net and the MS knowledgebase, but can not find any
detailed specification over exactly what properties are inherited when
"Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Eric G
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

Hi again Stefan,

Many thanks for your reply and link to Shauna Kelly's article, much
appreciated.

After reading the article a couple of times and starting out with a virgin
template, I now see what's happening.

Best regards,

Eric G,
Stockholm, Sweden

Than
"Stefan Blom" wrote in message
...
Every setting which hasn't been explicitly modified in the newly
created style will be inherited from the parent. See
http://www.shaunakelly.com/word/styl...esCascade.html.

--
Hälsningar
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hello,

I've searched the net and the MS knowledgebase, but can not find any
detailed specification over exactly what properties are inherited when
"Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden





  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

Glad I could help.

--
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hi again Stefan,

Many thanks for your reply and link to Shauna Kelly's article, much
appreciated.

After reading the article a couple of times and starting out with a

virgin
template, I now see what's happening.

Best regards,

Eric G,
Stockholm, Sweden

Than
"Stefan Blom" wrote in message
...
Every setting which hasn't been explicitly modified in the newly
created style will be inherited from the parent. See
http://www.shaunakelly.com/word/styl...esCascade.html.

--
Hälsningar
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hello,

I've searched the net and the MS knowledgebase, but can not find

any
detailed specification over exactly what properties are inherited

when
"Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden









  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

What annoys me is that the same relationship doesn't apply to existing
styles. In a brand-new document in which I have no text and have applied no
styles, if I modify Body Text to have 24-point line spacing and no Space
After, then I still have to apply the same modifications to Body Text First
Indent, which is based on Body Text. It seems to me that modifying Body Text
should affect every style based on it except for the aspects in which they
differed to begin with.

Ironically, I have just figured out that if I first change the indent in
Body Text First Indent, THEN modify Body Text, then the modifications in
Body Text are applied to Body Text First Indent. That at least is valuable
knowledge.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Stefan Blom" wrote in message
...
Every setting which hasn't been explicitly modified in the newly
created style will be inherited from the parent. See
http://www.shaunakelly.com/word/styl...esCascade.html.

--
Hälsningar
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hello,

I've searched the net and the MS knowledgebase, but can not find any
detailed specification over exactly what properties are inherited when
"Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden






  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

"Suzanne S. Barnhill" wrote in message
...
What annoys me is that the same relationship doesn't apply to

existing
styles. In a brand-new document in which I have no text and have

applied no
styles, if I modify Body Text to have 24-point line spacing and no

Space
After, then I still have to apply the same modifications to Body

Text First
Indent, which is based on Body Text. It seems to me that modifying

Body Text
should affect every style based on it except for the aspects in

which they
differed to begin with.


I hadn't noticed this before. It is indeed annoying! The problem seems
to be only with built-in styles, though.

Ironically, I have just figured out that if I first change the

indent in
Body Text First Indent, THEN modify Body Text, then the

modifications in
Body Text are applied to Body Text First Indent. That at least is

valuable
knowledge.


Yes, this is useful information.

Another method to deal with this type of problems is of course to use
a macro to restore the link between the Body Text First Indent style
and its base style:

ActiveDocument.Styles(wdStyleBodyTextFirstIndent). Font = _
ActiveDocument.Styles(wdStyleBodyTextFirstIndent). BaseStyle.Font

ActiveDocument.Styles(wdStyleBodyTextFirstIndent). ParagraphFormat = _
ActiveDocument.Styles(wdStyleBodyTextFirstIndent). BaseStyle _
..ParagraphFormat

and then specify the desired indent in Body Text First Indent. See
http://word.mvps.org/faqs/macrosvba/ResetStyles.htm for more.

--
Stefan Blom
Microsoft Word MVP


--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"Stefan Blom" wrote in message
...
Every setting which hasn't been explicitly modified in the newly
created style will be inherited from the parent. See
http://www.shaunakelly.com/word/styl...esCascade.html.

--
Hälsningar
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hello,

I've searched the net and the MS knowledgebase, but can not find

any
detailed specification over exactly what properties are inherited

when
"Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden












  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

Well, you know how much I love macros. g

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Stefan Blom" wrote in message
...
"Suzanne S. Barnhill" wrote in message
...
What annoys me is that the same relationship doesn't apply to

existing
styles. In a brand-new document in which I have no text and have

applied no
styles, if I modify Body Text to have 24-point line spacing and no

Space
After, then I still have to apply the same modifications to Body

Text First
Indent, which is based on Body Text. It seems to me that modifying

Body Text
should affect every style based on it except for the aspects in

which they
differed to begin with.


I hadn't noticed this before. It is indeed annoying! The problem seems
to be only with built-in styles, though.

Ironically, I have just figured out that if I first change the

indent in
Body Text First Indent, THEN modify Body Text, then the

modifications in
Body Text are applied to Body Text First Indent. That at least is

valuable
knowledge.


Yes, this is useful information.

Another method to deal with this type of problems is of course to use
a macro to restore the link between the Body Text First Indent style
and its base style:

ActiveDocument.Styles(wdStyleBodyTextFirstIndent). Font = _
ActiveDocument.Styles(wdStyleBodyTextFirstIndent). BaseStyle.Font

ActiveDocument.Styles(wdStyleBodyTextFirstIndent). ParagraphFormat = _
ActiveDocument.Styles(wdStyleBodyTextFirstIndent). BaseStyle _
.ParagraphFormat

and then specify the desired indent in Body Text First Indent. See
http://word.mvps.org/faqs/macrosvba/ResetStyles.htm for more.

--
Stefan Blom
Microsoft Word MVP


--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"Stefan Blom" wrote in message
...
Every setting which hasn't been explicitly modified in the newly
created style will be inherited from the parent. See
http://www.shaunakelly.com/word/styl...esCascade.html.

--
Hälsningar
Stefan Blom
Microsoft Word MVP


"Eric G" skrev i meddelandet
...
Hello,

I've searched the net and the MS knowledgebase, but can not find

any
detailed specification over exactly what properties are inherited

when
"Style based on" is used in setting up a style.

Any ideas, or links to some write-up(s)?

Best regards,


Eric G,
Stockholm, Sweden













  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default Styles; What properties are inherited when "Style based on" is specified?

Running the macro in my previous response may lead to unexpected
results if the Body Text First Indent style has no base style. In
other words, it needs to be modified, for example like this:

Sub Test()

Dim s As Style
Set s = ActiveDocument.Styles(wdStyleBodyTextFirstIndent)

If s.BaseStyle = "" Then
Exit Sub
End If

s.Font = s.BaseStyle.Font

s.ParagraphFormat = s.BaseStyle.ParagraphFormat

End Sub

--
Stefan Blom
Microsoft Word MVP


"Stefan Blom" wrote:

Another method to deal with this type of problems is of course to

use
a macro to restore the link between the Body Text First Indent style
and its base style:

ActiveDocument.Styles(wdStyleBodyTextFirstIndent). Font = _
ActiveDocument.Styles(wdStyleBodyTextFirstIndent). BaseStyle.Font

ActiveDocument.Styles(wdStyleBodyTextFirstIndent). ParagraphFormat =

_
ActiveDocument.Styles(wdStyleBodyTextFirstIndent). BaseStyle _
.ParagraphFormat

and then specify the desired indent in Body Text First Indent. See
http://word.mvps.org/faqs/macrosvba/ResetStyles.htm for more.




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Styles Growing Deb Page Layout 12 April 5th 06 10:56 PM
Object (picture) properties thru styles? SM Page Layout 2 June 19th 05 10:48 AM
Interactions between Normal and custom templates Patrick Microsoft Word Help 4 May 30th 05 03:06 PM
why would changing a style modify other styles (not based on each futureknight Page Layout 1 March 14th 05 06:59 PM
Table styles mysteriously disappear jstammer Tables 8 February 17th 05 03:44 AM


All times are GMT +1. The time now is 05:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"