#1   Report Post  
Posted to microsoft.public.word.formatting.longdocs
[email protected] Jim@google.net is offline
external usenet poster
 
Posts: 4
Default Remove Styles

I have a long document with multiple Word Styles. The company I am
working with is clueless as to how to work with them and asked me to
remove them

Is there a way to "remove" the styles from the document while having
the underlying text maintain the formatting of the styles.
  #2   Report Post  
Posted to microsoft.public.word.formatting.longdocs
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Remove Styles

Hi Jim,

If you're referring to the built-in Styles, you can't remove them. A far better approach is to demonstrate the power of Styles to
the company and, when the light bulb brightens, teach the workers how to use them.

--
Cheers
macropod
[Microsoft MVP - Word]


wrote in message ...
I have a long document with multiple Word Styles. The company I am
working with is clueless as to how to work with them and asked me to
remove them

Is there a way to "remove" the styles from the document while having
the underlying text maintain the formatting of the styles.


  #3   Report Post  
Posted to microsoft.public.word.formatting.longdocs
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Remove Styles

Hi Jim,

If you're referring to the built-in Styles, you can't remove them. A far better approach is to demonstrate the power of Styles to
the company and, when the light bulb brightens, teach the workers how to use them.

--
Cheers
macropod
[Microsoft MVP - Word]


wrote in message ...
I have a long document with multiple Word Styles. The company I am
working with is clueless as to how to work with them and asked me to
remove them

Is there a way to "remove" the styles from the document while having
the underlying text maintain the formatting of the styles.


  #4   Report Post  
Posted to microsoft.public.word.formatting.longdocs
[email protected] Jim@google.net is offline
external usenet poster
 
Posts: 4
Default Remove Styles

Thanks . Actually I was referring to styles I added nit the default
built in styles

In terms of the power of styles although I agree it would be nice I do
find that using styles with multi-level lists (which is what I did) to
be somewhat cumbersome. It would be a hard sell

Thanks for your help

FYI I tried the VBA command
ActiveDocument.Styles("Custom1").Delete

but that genereate a vba error



On Thu, 7 Jan 2010 21:21:59 +1100, "macropod"
wrote:

Hi Jim,

If you're referring to the built-in Styles, you can't remove them. A far better approach is to demonstrate the power of Styles to
the company and, when the light bulb brightens, teach the workers how to use them.


  #5   Report Post  
Posted to microsoft.public.word.formatting.longdocs
[email protected] Jim@google.net is offline
external usenet poster
 
Posts: 4
Default Remove Styles

Thanks . Actually I was referring to styles I added nit the default
built in styles

In terms of the power of styles although I agree it would be nice I do
find that using styles with multi-level lists (which is what I did) to
be somewhat cumbersome. It would be a hard sell

Thanks for your help

FYI I tried the VBA command
ActiveDocument.Styles("Custom1").Delete

but that genereate a vba error



On Thu, 7 Jan 2010 21:21:59 +1100, "macropod"
wrote:

Hi Jim,

If you're referring to the built-in Styles, you can't remove them. A far better approach is to demonstrate the power of Styles to
the company and, when the light bulb brightens, teach the workers how to use them.




  #6   Report Post  
Posted to microsoft.public.word.formatting.longdocs
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Remove Styles

Hi Jim,

You could try something based on:

Sub Demo()
Dim Sty As Style
For Each Sty In ActiveDocument.Styles
If Sty.BuiltIn = False Then Sty.Delete
Next
End Sub

Unfortunately, you lose all of the formatting associated with the deleted Styles in the text that used them.

What you can do, however, is to delete all the Styles that aren't being used, leaving only the used ones to process. For this you
could try something based on:

Sub Demo()
Dim Sty As Style
With ActiveDocument
For Each Sty In .Styles
If Sty.BuiltIn = False Then
With .Content.Find
.ClearFormatting
.Text = ""
.Style = Sty.NameLocal
.Execute Format:=True
If .Found = False Then
Sty.Delete
Else
MsgBox "Style: " & Sty.NameLocal & " is in use."
End If
End With
End If
Next
End With
End Sub

From there it's be a matter of using Find to locate each use of the reported 'in use' Styles, capturing the relevant attributes,
changing the range's Style to a suitable built-in Style and then either modifying that Style to suit or hard-formatting the range
with the formerly-applied Style's attributes. Once that's done for all ranges in that Style, the Style can safely be deleted.

--
Cheers
macropod
[Microsoft MVP - Word]


wrote in message ...
Thanks . Actually I was referring to styles I added nit the default
built in styles

In terms of the power of styles although I agree it would be nice I do
find that using styles with multi-level lists (which is what I did) to
be somewhat cumbersome. It would be a hard sell

Thanks for your help

FYI I tried the VBA command
ActiveDocument.Styles("Custom1").Delete

but that genereate a vba error



On Thu, 7 Jan 2010 21:21:59 +1100, "macropod"
wrote:

Hi Jim,

If you're referring to the built-in Styles, you can't remove them. A far better approach is to demonstrate the power of Styles to
the company and, when the light bulb brightens, teach the workers how to use them.



  #7   Report Post  
Posted to microsoft.public.word.formatting.longdocs
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Remove Styles

Hi Jim,

You could try something based on:

Sub Demo()
Dim Sty As Style
For Each Sty In ActiveDocument.Styles
If Sty.BuiltIn = False Then Sty.Delete
Next
End Sub

Unfortunately, you lose all of the formatting associated with the deleted Styles in the text that used them.

What you can do, however, is to delete all the Styles that aren't being used, leaving only the used ones to process. For this you
could try something based on:

Sub Demo()
Dim Sty As Style
With ActiveDocument
For Each Sty In .Styles
If Sty.BuiltIn = False Then
With .Content.Find
.ClearFormatting
.Text = ""
.Style = Sty.NameLocal
.Execute Format:=True
If .Found = False Then
Sty.Delete
Else
MsgBox "Style: " & Sty.NameLocal & " is in use."
End If
End With
End If
Next
End With
End Sub

From there it's be a matter of using Find to locate each use of the reported 'in use' Styles, capturing the relevant attributes,
changing the range's Style to a suitable built-in Style and then either modifying that Style to suit or hard-formatting the range
with the formerly-applied Style's attributes. Once that's done for all ranges in that Style, the Style can safely be deleted.

--
Cheers
macropod
[Microsoft MVP - Word]


wrote in message ...
Thanks . Actually I was referring to styles I added nit the default
built in styles

In terms of the power of styles although I agree it would be nice I do
find that using styles with multi-level lists (which is what I did) to
be somewhat cumbersome. It would be a hard sell

Thanks for your help

FYI I tried the VBA command
ActiveDocument.Styles("Custom1").Delete

but that genereate a vba error



On Thu, 7 Jan 2010 21:21:59 +1100, "macropod"
wrote:

Hi Jim,

If you're referring to the built-in Styles, you can't remove them. A far better approach is to demonstrate the power of Styles to
the company and, when the light bulb brightens, teach the workers how to use them.



  #8   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Pamelia Caswell via OfficeKB.com Pamelia Caswell via OfficeKB.com is offline
external usenet poster
 
Posts: 468
Default Remove Styles

It may help you to reverse what I do to clean up documents when, as in your
case, wiping out all formatting is not an option.

Turn on keep track of formatting in Word options and go to styles pane
Options (in W2007). In the section of the dialog that says "formatting to
show as styles" put a check in the box before Paragraph level formatting.

Create a normal paragraph and apply formatting (say 14 pt bold ) that is the
same as one of your user-defined styles. An entry will appear in the style
pane that says something like "+ 14 pt bold" ("Normal" does not always
appear. For other styles with manual formatting, the style name always
appears before the plus sign.)

In the styles pane, select all instances of the user-defined style you
duplicated, then apply the normal + formatting you just created.

Do this for any style that you want to change to normal + formatting.

Note that this will break your heading numbering, so my may want to convert
those numbers to text before you begin. As an aside, I have found that
using multilevel list numbering linked to styles, though sometimes tricky to
set up, is a reliable and easy way to apply and fix heading numbering.

HTH,
Pam

wrote:
I have a long document with multiple Word Styles. The company I am
working with is clueless as to how to work with them and asked me to
remove them

Is there a way to "remove" the styles from the document while having
the underlying text maintain the formatting of the styles.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...gdocs/201001/1

  #9   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Pamelia Caswell via OfficeKB.com Pamelia Caswell via OfficeKB.com is offline
external usenet poster
 
Posts: 468
Default Remove Styles

It may help you to reverse what I do to clean up documents when, as in your
case, wiping out all formatting is not an option.

Turn on keep track of formatting in Word options and go to styles pane
Options (in W2007). In the section of the dialog that says "formatting to
show as styles" put a check in the box before Paragraph level formatting.

Create a normal paragraph and apply formatting (say 14 pt bold ) that is the
same as one of your user-defined styles. An entry will appear in the style
pane that says something like "+ 14 pt bold" ("Normal" does not always
appear. For other styles with manual formatting, the style name always
appears before the plus sign.)

In the styles pane, select all instances of the user-defined style you
duplicated, then apply the normal + formatting you just created.

Do this for any style that you want to change to normal + formatting.

Note that this will break your heading numbering, so my may want to convert
those numbers to text before you begin. As an aside, I have found that
using multilevel list numbering linked to styles, though sometimes tricky to
set up, is a reliable and easy way to apply and fix heading numbering.

HTH,
Pam

wrote:
I have a long document with multiple Word Styles. The company I am
working with is clueless as to how to work with them and asked me to
remove them

Is there a way to "remove" the styles from the document while having
the underlying text maintain the formatting of the styles.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...gdocs/201001/1

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
Remove numbered styles Phippsy Page Layout 3 September 18th 07 09:32 AM
Remove Change Styles in 07 Trainer New Users 2 June 19th 07 02:58 PM
How to remove build-in styles? Tomo Page Layout 2 April 12th 07 09:39 AM
remove styles not in use tmirelle Microsoft Word Help 2 April 2nd 07 10:46 AM
Remove unused styles Klaus Löffelmann Page Layout 7 December 29th 04 11:29 PM


All times are GMT +1. The time now is 04:46 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"