kweaver
Well-known Member
- Joined
- May 12, 2009
- Messages
- 2,934
- Office Version
- 365
- 2010
I want a macro to paste plain text into the current cell.
What I recorded was:
This works fine when the clipboard contains a value from Excel.
But if the clipboard has formatted text from Word, let's say, it fails. What I want to paste is the CF_TEXT format from the Windows clipboard.
What I recorded was:
Code:
Sub PasteUnformattedText()
'
' PasteUnformattedText Macro
' Keyboard Shortcut: Ctrl+Shift+V
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
This works fine when the clipboard contains a value from Excel.
But if the clipboard has formatted text from Word, let's say, it fails. What I want to paste is the CF_TEXT format from the Windows clipboard.