Hi,
I found a similar workaround as Shane. I do a replace, where find is looking for the style normal, and replace is replacing to the style normal. This works immediate.
the recorded macro:
Sub Macro1()
'
' Macro1 Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Style = ActiveDocument.Styles("Normal")
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Style = ActiveDocument.Styles("Normal")
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
------------------------------
Harald Hotz-Behofsits
Frequentis AG
------------------------------
Original Message:
Sent: 05-05-2017 15:51
From: Kristina King
Subject: Word export and outline levels
Thanks, Shane, for the much better workaround!
------------------------------
Kristina King
Jama Software
Original Message:
Sent: 05-02-2017 05:42
From: Shane O'Neill
Subject: Word export and outline levels
Hi
Here is a workaround that is easier than manually selecting each paragraph and fixing. (For Word 2013 but should work in other versions as well)
From the style menu, select the 'normal' drop down menu on RHS and click "select All". If the document is big this can be slow so be patient.

Once the select all is complete (be careful not to click on the doc text as it will clear the selection).
Select the outline view

Then click the dropdown for outlinelevel and select body text

This should change all "normal" text outline level back to 'body text' and will clean up Table of Contents etc.
Rgds
Shane
------------------------------
Shane O'Neill
Xilinx
Original Message:
Sent: 04-04-2017 12:26
From: Kristina King
Subject: Word export and outline levels
Hey Ian,
You're absolutely right on that one—thanks for jogging my memory. Sadly since there are a handful of exporting bugs I can't keep them straight by description. But looking at the bugs reported by your company, it was easy to find the one that Julie is reporting. (For the record it is SOS-DEF-1388.)
------------------------------
Kristina King
Jama Software
Original Message:
Sent: 04-02-2017 17:40
From: Ian Webb
Subject: Word export and outline levels
I had a notion that this is a known fault. It's certainly behaviour that that I see (and it IS a bit of a nuisance).
I THINK that my erstwhile colleague, Rolland, had reported this before he left my company but maybe I'm remembering this wrongly.
Anyways, a fix would be nice.
------------------------------
Ian Webb
Enphase Energy, Inc.
Original Message:
Sent: 03-30-2017 23:24
From: Julie Kalitis
Subject: Word export and outline levels
I'm creating a Word template for exporting items and I've noticed that Jama is setting the outline level of the description field to Level 4, despite having the style set to Normal and the Normal style having the outline level set at "Body Text". Is there a way to control this, or will I have to go through the exported document and clean this up later?
Thanks
------------------------------
Julie Kalitis
------------------------------