View Single Post
 
Old 02-18-2016, 05:46 PM
Chayes Chayes is offline Windows XP Office 2003
Advanced Beginner
 
Join Date: May 2012
Posts: 79
Chayes is on a distinguished road
Default 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.
Reply With Quote