Pasting as unformatted text VBA
Hi All
I have several macros in my Word 2003 installation. I have been using them with no hitch on XP for years. Now I've transferred to a Win 7 Pro machine , I'm getting errors from my code and the macros are failing.
This VBA , which I use to paste the content of the clipboard as unformatted text :
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _
Placement:=wdInLine, DisplayAsIcon:=False
now gives errors.
I've tried various things to try to get this to work , with no success. It either gives an error , or if it does paste , it pastes the clipboard content in its formatted form , which is not what I need.
Can sometime help with some code to paste the content of the clipboard as unformatted text?
Grateful for any help.
|