Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-13-2012, 06:04 PM
gmaxey gmaxey is offline Quick Parts Windows 7 32bit Quick Parts Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,600
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Quick Parts with the document derohanes Word 4 10-23-2013 09:30 PM
Deleting Quick Parts in 2007 tazeo Office 2 02-12-2012 03:20 PM
Quick Parts Quick Parts - Own Custom Toolbar nutrastat Word 3 09-09-2011 01:52 PM
Quick Parts Quick parts in doc file alokmay Word 1 06-14-2011 04:46 PM
Word 2007 Quick Parts kateVanG Word 2 04-15-2009 07:04 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft