|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Is it possible to create a shortcut for a command that's not in "all commands"?
Word 2013, Windows 10
I previously created a keyboard shortcut for "paste unformatted" that required a single step (Alt P in my case). The shortcut was lost when I updated Windows. When I tried to recreate the shortcut, I found that "paste unformatted" isn't listed among the "all commands." QUESTION: Is it possible to create a new command that doesn't appear on the "all commands" list? I'm aware of the numerous other ways to paste unformatted. I don't want to use any of them. I want to restore my previous Alt P. Sadly, I can't remember how I created this before. By the way, Alt P still works fine in my Word 2003, but not in Word 2013. Thanks for your help! |
#2
|
||||
|
||||
You can add a macro to the Normal template and assign a keyboard shortcut to the macro. For example:
Code:
Sub PasteContentInPlainTextFormat() On Error Resume Next Selection.PasteSpecial datatype:=wdPasteText End Sub
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#3
|
|||
|
|||
Than you for your reply. I have no knowledge of macros. Perhaps you could post complete instructions?
By the way, the normal Control Shift V is also not working in Word 2013, but still works in Word 2003, so clearly the most recent Windows update broke something. |
#4
|
||||
|
||||
For more on installing macros, see Graham Mayor's article Installing Macros.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#5
|
|||
|
|||
Ctrl+Shift+V is the corresponding command to Ctrl+Shift+C which are for paste and copy formatting, respectively. It is not the change in Windows, but Word 2013 is not Word 2003 although it is very compatible. Few keyboard shortcuts have been changed.
Here is my article on finding them: Create a List of Keyboard Shortcuts in Microsoft Word |
#6
|
||||
|
||||
To add to what Charles has said, some web browsers make use of Ctrl+Shift+V for pasting in plain text format. That shortcut has never been used with pasting in Word, as far as I can recall.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#7
|
|||
|
|||
There is a command in the "All" list called "EditPasteSpecial." That will get you close.
There's another command called "PasteTextOnly" but I was unable to get it to work. You might want to check whether another hotkey is assigned that pastes special or pastes as text. Here's how: 1. Press Alt + F8 to open the "Macros" dialog. 2. Type "ListCommands" and press Enter. 3. You'll be prompted to what kind of list you want. Choose "All Word commands" A list of commands will be generated. If hotkeys assigned to a command, the hotkeys appear next to the command names. The list is very long, so rather than read it line by line, you'll probably want to search for terms like "paste" or "special". |
#8
|
|||
|
|||
Alan, "Edit paste special" requires 4 clicks. I sometimes do a couple hundred pastes per day in my work, so that's 800 clicks instead of 200. It really slows my work down. This is why I'm not interested in anything other than a one-click solution, which I had before the Windows update.
|
#9
|
|||
|
|||
Quote:
As I said earlier, PasteUnformatted is not on the all commands list. |
#10
|
|||
|
|||
The reason "PasteUnformatted" does not appear on the list is because it's not a Word command. My guess is that you created a command with that name, but it's been lost. You would need to use VBA, Word's macro language, to recreate it.
But I think you may be able to create the same functionality by following these steps. To set this up, you'll need a keyboard that has a numeric keypad: the first step requires the use of the plus-sign on the keypad. During the process, you'll assign a hotkey to activate the command. Your chosen hotkey doesn't require the keypad. Start by copying some formatted text to the clipboard. 1. Press Ctrl + Alt + Plus (on the numeric keypad). 2. The mouse pointer will change into a cloverleaf. 3. Click the Home ribbon. 4. Click the little downward facing arrow under the word "Paste" 5. Four paste options will appear. The one you want is probably the rightmost. Hover the mouse cursor over each option. Click the one that says "Keep Text Only." 6. A dialog box will appear that will allow you to assign the command to a hotkey. Assign the hotkey, and close the dialog box. You're done. Test your hotkey. If the above doesn't work, and you're not up to recreating the macro, this sequence of four key presses should achieve the same thing, with zero mouse clicks. Press the first key and release it. Press the second key and release it, etc. Start by copying some formatted text to the clipboard. Then press the four key sequence. No need hold down two keys simultaneously. In fact, the key sequence will fail if you do so! Press the keys one after another, and hopefully you'll be fine. Alt H V T or F10 H V T Last edited by AlanCantor; 02-04-2023 at 09:08 PM. |
#11
|
|||
|
|||
Alan, unfortunately I don't have a number keypad. Alt HVT works pretty well---thank you very much for that suggestion. I would be delighted if I could reduce that command to two keystrokes. Is that possible?
I'm confused about in what sense "PasteUnformatted" is not a Word command. It's one of three options under Home---Paste---Paste Special. How is it different from, say, control B for bold? I think I may have solved my problem by trial and error in my Word settings under File---Options---Advanced---Cut, copy, and paste. For "Pasting from other programs" I changed it to "Keep text only." That seems to have worked pretty well. I assume this means "Keep text only, not the formatting." If this solution sticks, it means I only need to use control V to paste. I should have clarified at the beginning that the majority of my pastes are from websites to Word. documents. I'm still grouchy about the problems that always accompany Windows updates. They always make me lose several hours of paid work time. In this case, I postponed the update because I was in the middle of a large project with a deadline. Due to very low winter humidity in my house, I accidentally crashed my laptop with a static electric shock from my hand. When this happens, Windows will automatically update regardless of your previous scheduling of the update. (Sorry, off topic.) Yes, I've now taken steps against static electricity. Live and learn! |
#12
|
|||
|
|||
I just tried assigning the "PasteTextOnly" command to a shortcut key. It worked.
PasteTextOnly appears in the "All Commands" category of the "Customize Keyboard" window. |
#13
|
|||
|
|||
Fabulous. You're a genius, Alan. This is exactly the simple solution I was looking for. You just made my job a lot easier. THANK YOU SO MUCH!!!
The key was that "PasteUnformatted" is the same as "PasteTextOnly." |
#14
|
|||
|
|||
Microsoft likes to use different names for the same thing in different places.
A good example is in the Modify the Ribbon and Modify the QAT dialogs. |
#15
|
||||
|
||||
Good catch!
I hadn't noticed the PasteTextOnly command before, but I am assuming that it has been around for years.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word 2003: Assign "Home" to keyboard shortcut Ctrl+Q+S? | Clueless in Seattle | Word VBA | 1 | 02-06-2023 06:36 PM |
Excel 2003: VBA "Function" causes "#VALUE!" errors after running "insert/delete row" custom macro | Matt C | Excel Programming | 2 | 01-08-2022 06:03 AM |
How do you use the "seq" command to start a list at "2" (not "1")? | techwriter3k | Word | 4 | 05-22-2020 07:59 AM |
How to create a "Font color" button and a "Highlight text" button in the Quick Launch toolbar ? | gloub | Word | 12 | 02-19-2019 03:19 PM |
Create exceptions to the "Capitalize Each Word" command | TonyTyner@comcast.net | PowerPoint | 0 | 03-13-2015 09:13 AM |