Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS Word: Creating shortcut or toolbar button for the "Paste Special..Unformatted Text" option

I have been playing with this for a while, but the closest I have gotten is a button that opens the Paste Special dialog box and requires another couple of mouse clicks to paste the contents of the clipboard as unformatted text.

So often I am doing a copy-paste from a web site into a document where I don't want the additional baggage of the HTML formatting, it would be nice to be able to do this with a shortcut key or a toolbar button.

like image 944
JohnFx Avatar asked Sep 16 '08 16:09

JohnFx


People also ask

What is the shortcut to paste Unformatted Text in Word?

Programs in the Microsoft Office suite naturally do things a little differently, and the way to paste as plain text is to hit Ctrl + Alt + V and then select “Unformatted Text”. Alternatively, you can do Alt , H , V , T . Note that the keys are pressed and released in sequence, not held simultaneously.

Which button is used to paste plain text from a Word processor?

Keyboard shortcuts: Ctrl+X = Cut. Ctrl+V = Paste.

How do I automatically paste in plain text?

Go to File > Options > Advanced. Clear Keep bullets and numbers when pasting text with Keep Text Only option. Select OK.


2 Answers

Make the button call the macro:

public sub PasteSpecialUnformatted()
  selection.pastespecial datatype:=wdpastetext
end sub
like image 163
GSerg Avatar answered Oct 08 '22 03:10

GSerg


I would suggest using the PureText lightweight utility application by Steve Miller for this.

PureText runs in your system tray and listens on a global hotkey (which you can define -- I use Win+V) to perform a "paste text sans formatting" -- essentially the same operation as opening up an instance of notepad.exe, pasting into that, re-copying the resultant plain text, and then pasting into the actual target application.

The advantage of this approach is that you'll be able to perform a "paste text sans formatting" in any of your applications, not just in Word.

I first installed PureText a couple of years ago and have been using it heavily ever since; it has become a "must-have" utility application for me. Highly recommended.

like image 24
Jon Schneider Avatar answered Oct 08 '22 02:10

Jon Schneider