Thread: [Solved] Quick Parts
View Single Post
 
Old 11-13-2012, 06:04 PM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,438
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

how are you entering the desired quickpart? Are you using a building block gallery content control? If so, you could convert the chosen entry to a rich text control before sending externally:

HTML Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oCC As ContentControl
Dim oCCNew As ContentControl
Dim oRng As Word.Range
Dim strText As String
For Each oCC In ActiveDocument.ContentControls
  If oCC.Type = wdContentControlBuildingBlockGallery Then
    Set oRng = oCC.Range
    strText = oCC.Title
    oCC.Delete
    Set oCCNew = ActiveDocument.ContentControls.Add(wdContentControlRichText, oRng)
    oCCNew.Title = strText
  End If
Next oCC
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote