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,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
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