
Only the text should appear, in the format of the document, not of the source. Now test the macro: Select a mix of text and other elements in your browser or some other application, press Ctrl-c to place it on the clipboard, return to Word, click Tools*Macro*Macros in Word 2003, or View*Macros in Word 2007, select PlainPaste in the list of Macros, and click Run. Type this text in the penultimate line of your macro to paste plain text. Press Ctrl-s to save the macro, and click File*Close and Return to Microsoft Word. The only space in the line is between "PasteSpecial" and "Datatype:". Place the cursor at the beginning of the line just above "End Sub" and type Selection.PasteSpecial DataType:=wdPasteText. Name must begin with a letter, have no spaces, and use no punctuation), In the Macro name field (you can name it anything you like, but the Paste plain text in Word via the keyboard my thanks to the reader below for pointing out this error. Key to paste the text without images, formatting, and other non-textĮlements. You initially copy the text, you need only press PureText's shortcut If both the source and destination programs are open when This is true only if you open theĭestination app after the material you want to paste has been added to That you click its icon in your system tray before you press the Note that the original post of this tip reported that PureText required
HOW TO CREATE A KEYBOARD SHORTCUT TO PASTE TEXT DOWNLOAD
You can create a macro to get the sameįunctionality in Word and Excel, without having to download anything. Test your keyboard shortcut by copying some formatted text from another source (web page, another document, etc.), then use the keyboard shortcut you just assigned to paste it into your Word document as unformatted text.Last week I described the PureText utility that lets you paste plain text in Word and other applications.Click OK to close the Word Options dialog box.The new keyboard shortcut will shift into the Current keys box. If it doesn’t, then the key combination you chose is already used for something else and you’ll have to assign a new combination in the Press new shortcut key field. Checked that Currently assigned to has next to it.They will display in the field similar to this: Alt+P,T (3 in the screenshot). For example, if you want the keyboard shortcut to be Alt+p+t (‘p’ for paste, ‘t’ for text), then press those keys as though you were using them in the document. In the Press new shortcut key field, PRESS the keys you want to use for this shortcut.Scroll down to PasteTextOnly and select it (2 in the screenshot).In the Commands list (top right box), type p to get to the commands starting with ‘p’.Scroll down the list of Categories (top left box) to All commands and select it (number 1 in the screenshot below).Below the left panel of commands, click the Customize button (next to Keyboard shortcuts) to open the Customize Keyboard dialog box.Click Customize ribbon in the left panel.On the File menu, click Options to open the Word Options dialog box.Note: As far as I’m aware you can do this in all versions of Word from at least Word 2010 onwards. However, if you have to do this a lot, there’s another, much easier, way - assign a keyboard shortcut to the ‘paste as unformatted text’ command. I’ve previously written about using toolbar icons, macros, or other features of Word to paste copied text as unformatted text (see and ).
