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

StackOverflow https://stackoverflow.com/questions/74206

  •  09-06-2019
  •  | 
  •  

Question

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.

Was it helpful?

Solution

Make the button call the macro:

public sub PasteSpecialUnformatted()
  selection.pastespecial datatype:=wdpastetext
end sub

OTHER TIPS

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.

I use FingerTips for this. By default it will make CTRL+W -> Paste Special. Furthermore it supports macro text and a lot of useful start-programs-quick things and some Microsoft Outlook tricks to support Getting Things Done.

You can simply use Quick Access Panel in MS Word 2007 and later versions.

It is very simple to add Shortcut Buttons in MS Office

And saves a lot of time for regular users.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top