Last week I described the PureText utility that lets you paste plain text in Word and other applications via a keyboard shortcut. You can create a macro to get the same functionality in Word and Excel, without having to download anything.
(Note that the original post of this tip reported that PureText required that you click its icon in your system tray before you press the shortcut keys to paste plain text. This is true only if you open the destination app after the material you want to paste has been added to the clipboard. If both the source and destination programs are open when you initially copy the text, you need only press PureText's shortcut key to paste the text without images, formatting, and other non-text elements. my thanks to the reader below for pointing out this error.)
Paste plain text in Word via the keyboard
In Word 2003, click Tools*Macro*Macros. In Word 2007, click View*Macros. In both versions, type PlainPaste in the Macro name field (you can name it anything you like, but the name must begin with a letter, have no spaces, and use no punctuation), and choose Create. Place the cursor at the beginning of the line just above "End Sub" and type Selection.PasteSpecial DataType:=wdPasteText. The only space in the line is between "PasteSpecial" and "Datatype:". Press Ctrl-s to save the macro, and click File*Close and Return to Microsoft Word.
Type this text in the penultimate line of your macro to paste plain text.
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. Only the text should appear, in the format of the document, not of the source.
Next, assign a keyboard shortcut to the macro: In Word 2003, click Tools*Customize*Commands, make sure Normal.dot is selected in the "Save in" drop-down menu, and click the Keyboard button. Scroll down the Categories list in the top left and select Macros. Choose PlainPaste (or whatever you named the macro) in the right pane, click in the "Press new shortcut key" box, type Ctrl-t (or the unused key combination of your choice, beginning with Ctrl, Alt, and/or Shift), select Assign and then Close twice.
To assign the keyboard shortcut in Word 2007, click the Office button in the top-left corner, choose Word Options at the bottom of the window, click Customize in the left pane, and then the Customize button to the right of "Keyboard shortcuts" at the bottom of the Word Options dialog box. Scroll to and select Macros in the Categories window, select the PlainPaste macro in the window to the right, click in the "Create new keyboard shortcut" field, type Ctrl-t (or your choice of combination, beginning with Ctrl, Alt, and/or Shift), click Assign, then Close, and finally OK.
Set a keyboard shortcut for your plain-paste macro in Word.
Give Excel a plain-paste keyboard shortcut
Here's the fastest way I know of to create a plain-paste keyboard shortcut in Microsoft Excel: First, select any text and press Ctrl-c to place it in the clipboard. In Excel 2003, click Tools*Macro*Record New Macro. In Excel 2007, click View*Macros*Record Macro. Enter a name in the "Macro name" field, beginning with a character, and without any spaces or punctuation. Click in the "Shortcut key" box, type t (or the letter of your choice, as long as it isn't already assigned to a shortcut that begins with Ctrl), and press OK. In Excel 2003, click Edit*Paste Special*Text*OK, and press the Stop Recording button on the tiny toolbar that popped up when you closed the Record Macro dialog box. In Excel 2007, click Home*Paste*Paste Special*Text*OK*View*Stop Recording.
When you close Excel, you'll be asked if you want to save the changes in the Personal Macro Workbook. Click Yes to make the shortcut available when you reopen the application.
Tomorrow: The (selective) return of smart quotes in Microsoft Word.
"If you want something done right, do it yourself."
"Why reinvent the wheel?"
That sums up a conversation I had with a coworker after I told him about the macro I created in Microsoft Word that converts my Ctrl-V keyboard shortcut into one that pastes text from a Web site, some other app, or elsewhere, minus the formatting, images, and any other nontext stuff. The fact is, I rarely want to paste anything but the text, and I want it in the format of the file it's being added to, not the format of the source.
I thought this handy-dandy trick was a first-rate time-saver, especially when you consider that for those rare instances when I want to preserve the formatting of the source, or to include elements other than text, I simply press Shift-Insert.
My buddy said he could do me one better: He presses the Windows key and V to paste plain text he has copied from just about anywhere, into just about any application, not just Word. And he didn't have to go through a multistep process to create a Word macro. All he did was download Steve Miller's free PureText utility.
The PureText freebie from Steve Miller makes pasting plain text a breeze.
After you download the program, it puts an icon in your system tray. Then you just copy the text you want, click the icon before you press Windows-V to paste it without the formatting, or anything else except the text. You can choose another key combination as long as one of the keys is either the Shift, Ctrl, or the Windows key, but I stick with the default keys because they avoid conflicts with other shortcuts. Speaking of which....
Tomorrow: I'll give you a list of the most useful keyboard shortcuts you probably don't know about.
- prev
- 1
- next





