

Shift if it's in caps, Ctrl if you selected all text, Alt if you opened a menu). If something else happens, you are too fast and a modifier is stuck (p.e. You can test this by setting up your keyboard shortcut, using it into a text editor, and then pressing a key (like a, or an arrow). So with this you have to be a bit "slow" (50ms?) to release your modifiers, if you're using any. If you release the keys before it ends, your modifiers will be "pressed" again, and stuck there until you press and release the actual key once more. Even with -delay 0 (instead of 12ms), the command takes a little to execute. The only problem is that -clearmodifiers will "press" back any modifier (Ctrl/Alt/Shift/Meta) you use after simulating the click. xdotool click simulates an actual click, so you don't have to click yourself to paste at mouse position, as you would have if you used xdotool type, or xvkbd.xdotool handles multi-byte strings (p.e.Click Yes to make the shortcut available when you reopen the application.Another xdotool suggestion, working in Debian Jessie 8.7 (Jan 2017): xdotool click -delay 0 -clearmodifiers 2 When you close Excel, you'll be asked if you want to save the changes in the Personal Macro Workbook. In Excel 2007, click Home*Paste*Paste Special*Text*OK*View*Stop Recording. When you closed the Record Macro dialog box. In Excel 2003, click Edit*Paste Special*Text*OK,Īnd press the Stop Recording button on the tiny toolbar that popped up 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 2007, click View*Macros*Record Macro.Įnter a name in the "Macro name" field, beginning with a character, and In Excel 2003, click Tools*Macro*Record New Macro. 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. Give Excel a plain-paste keyboard shortcut Set a keyboard shortcut for your plain-paste macro in Word. 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. 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 down the Categories list in the top left and select Macros.Ĭhoose 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. 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.

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
#CREATE 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. Last week I described the PureText utility that lets you paste plain text in Word and other applications
