Thread: [Solved] Paste-As-Text macro
View Single Post
 
Old 11-20-2012, 12:32 AM
paulkaye paulkaye is offline Windows 7 64bit Office 2007
Advanced Beginner
 
Join Date: Nov 2011
Posts: 84
paulkaye is on a distinguished road
Default Paste-As-Text macro

I regularly need to copy and paste-as-text (rather than pasting formatting/html, etc.). In MS Word, I use the following macro:
Code:
Sub PasteSpecial()
Selection.PasteSpecial DataType:=wdPasteText
End Sub
but I get a runtime error when I try to use this in Excel. I assume there's something fundamentally different that I don't understand between the programs. At the moment I use ctrl+alt+v to bring up the paste special dialogue box, but I'd like to be able to just ctrl+shift+v to paste as plain text.
Any advice would be most appreciated.
Paul
Reply With Quote