View Single Post
  #9   Report Post  
Klaus Linke
 
Posts: n/a
Default

Hi Alisa,

You could try to insert the document content into a clean document (= Create a
new empty doc based on the same template as the broken one, use "Insert File".
Or copy/paste everything except the last paragraph mark into the new doc.)

To see the mess, you can use the macro:

Sub ShowLinkStyles()
' Based on one of Cindy Meister's macros
' (any bugs are mine)
Dim myStyle As Style
Dim myStyleLinkedStyle As Style
' On Error Resume Next
For Each myStyle In ActiveDocument.Styles
If myStyle.LinkStyle = "" Then
MsgBox StyleType(myStyle.NameLocal) & _
" " & Chr(34) & myStyle.NameLocal & _
vbCr & "LinkStyle = """"??"
Else
Set myStyleLinkedStyle = myStyle.LinkStyle
If myStyleLinkedStyle _
ActiveDocument.Styles(wdStyleNormal) Then
Select Case MsgBox("The " & _
StyleType(myStyle.NameLocal) & _
" " & Chr(34) & myStyle.NameLocal & Chr(34) & _
" is linked to " & StyleType(myStyle.LinkStyle) & _
" " & Chr(34) & myStyle.LinkStyle & Chr(34) & _
". " & vbCr _
& "This in turn is linked to " & _
StyleType(myStyleLinkedStyle.LinkStyle.NameLocal) & _
" " & Chr(34) & myStyleLinkedStyle.LinkStyle.NameLocal _
& "." & Chr(34), _
vbOKCancel + vbInformation, "Styles linked:")
Case vbOK
Case vbCancel
Exit Sub
End Select
End If
End If
Next myStyle
End Sub

Function StyleType(StyleName As String) As String
Select Case ActiveDocument.Styles(StyleName).Type
Case wdStyleTypeParagraph
StyleType = "paragraph style"
Case wdStyleTypeCharacter
StyleType = "character style"
Case wdStyleTypeList
StyleType = "list style"
Case wdStyleTypeTable
StyleType = "table style"
Case Else
StyleType = "unknown style type"
End Select
End Function

Do you see link styles for your broken table styles? If my table styles break, I
usually do.

You'll find weird link styles in just about any document. In theory (as far as I
understood it), you can only have a paragraph style linked to *one* character
style, and then, that character style should be linked to the character style
too.
In reality, I see paragraph styles linked to other paragraph styles, list and
table styles linked to paragraph and character styles, character styles that are
linked to more than one paragraph style, and just about every other weird
combination imaginable.

Often, you don't see the linked style in the style dropdown or in the "styles
and formatting" task pane (but you do in "Edit Find Format Styles").

You could try to fix it by deleting linked styles, or changing the link style,
but in my experience, this often only makes matters worse.

Sorry for the bad news...
I think it's something that needs to get fixed by Microsoft.

Regards,
Klaus



"AlisaLimv" wrote:
So, how do you disable the table styles? They've corrupted my document
multiple times and like jstammer, I'm pretty fed up.

I can't delete or edit the Table Normal style, which is insisting on using
Times Roman even though I don't use it in my doc. I apply my paragraph style,
but it doesn't show in the style list as applied. The Table Grid style
auto-applies every time I create a table, whether using Insert Table or
Convert text to table, but it is based on Table Normal (see above). Half the
time when I open and close the document, it corrupts the table contents
(including once applying the style HTML Address to the contents, which I've
never used and had a heck of a time deleting).

I don't have spurious Char styles. And I'm using a template that I've used
for several years and that I've been able to keep working through all
previous Word version.

Personally, I would prefer not to use the table styles at all, but I can't
figure out now to turn them off.

Any help would be appreciated.

Alias


"Klaus Linke" wrote:

For what it's worth: I've had the same problems as Jodzeee.

And when table styles broke (got linked to built-in styles ...), they

usually
take other styles with them.
Suddenly other built-in styles develop links, mostly styles I've never used

in
my life, and the document is essentially broken.

I usually go back to an older version at that point, swearing and muttering.
The method Jodzeee used (change the text in the broken styles to some other
style and then delete the broken styles) works, but you often loose a lot of
formatting. Especially if you don't look whether the broken styles have

become
linked to some other styles, and fix/replace/delete those, too.

It's probably more trouble than it's worth.

The problems are the main reason I don't use table styles much yet, and am a

bit
careful recommending them.

Regards,
Klaus


"Cindy M -WordMVP-" schrieb im Newsbeitrag
news:VA.0000a784.004ecbe0@speedy...
Hi Jodzeee,

As far as the tables go though, the people I work with are all upgraded
to 2002 or 2003 so that's not the problem. The table styles will
sometimes disappear WHILE I'm working on the document. Sometimes I'll
just save it and when it's done, the tables all revert back or take on
some other formatting. It's really bizarre.

Yes, that does sound odd. Check in Tools/OPtions/Save whether you've
disabled commands that aren't available in earlier versions? Also check
the default file type to which you're saving - make sure it's as a Word
document, and not something else (such as Word 6/95).

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 :-)