PDA

View Full Version : Paste default mode set to unformatted text in MS Word 2007



QeytonDude
06-17-2010, 08:13 PM
I would like to force the paste icon in Word 2007 to default to “unformatted text”; also acceptable would be a single right mouse click option. I found the code to add Paste Special to the right click menu, but then the user must select from a menu.
I need your help to make this user proof.
Thanks,

macropod
06-18-2010, 12:44 AM
Hi QeytonDude,

Have you checked out the paste default options under Word Options|Advanced > Cut, Copy & Paste?

Paul_Hossler
06-20-2010, 07:31 PM
You could use a macro to set Options, or do it manually, but I use a special QAT button to call the second macro below. Not bullet proof, but good enough


Option Explicit
Sub PasteAsText()
Options.PasteFormatBetweenDocuments = wdKeepTextOnly
Options.PasteFormatBetweenStyledDocuments = wdKeepTextOnly
Options.PasteFormatFromExternalSource = wdKeepTextOnly
End Sub

Sub PasteAsText2()
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, Placement:= _
wdFloatOverText, DisplayAsIcon:=False
End Sub


But the problem will be how to distribute the macro.

Paul