MrsMac said:
Word 2007. All of my auto text entries -- phrases, sentences,
paragraphs -- have an added hard return. I have re-entered my
entries, making sure that I select ONLY the specific words or
sentences that I need. The hard return is still there. Any
suggestions? Thanks in advance ...
Go to Insert > Quick Parts > Building Block Organizer, select an autotext
entry, and click Edit Properties. In the resulting dialog, if the Options
dropdown is set to "Insert content in its own paragraph", change it to
"Insert content only". Click OK and confirm replacing the entry.
The Building Block Organizer will only let you modify one entry at a time.
If you have a large number of AutoText entries, use this macro to change
them all at one shot (see
http://www.gmayor.com/installing_macro.htm if
needed).
Sub AllAutoTextInline()
' This macro changes all AutoText entries in a template
' to "insert in line" instead of "insert in separate paragraph"
Dim oTmpl As Template, idxTmpl As Template
Dim BB As BuildingBlock
Dim idxBB As Long
' if Building Blocks haven't been used yet in this session
Templates.LoadBuildingBlocks
' If the AutoText entries are stored in the Normal.dotm
' template, use this line instead of the For Each loop
' Set oTmpl = NormalTemplate
For Each idxTmpl In Templates
If InStr(idxTmpl.Name, "Building Blocks") Then
Set oTmpl = idxTmpl
Exit For
End If
Next
If Not (oTmpl Is Nothing) Then
For idxBB = 1 To oTmpl.BuildingBlockEntries.Count
Set BB = oTmpl.BuildingBlockEntries(idxBB)
If (BB.Type.Name = "AutoText") And _
(BB.InsertOptions = wdInsertParagraph) Then
BB.InsertOptions = wdInsertContent
End If
Next
End If
oTmpl.Save
Set oTmpl = Nothing
End Sub
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.