Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2023, 06:43 AM
PointyHead PointyHead is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 8 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2013
Advanced Beginner
Is it possible to create a shortcut for a command that's not in "all commands"?
 
Join Date: Dec 2013
Posts: 36
PointyHead is on a distinguished road
Default 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!
Reply With Quote
  #2  
Old 02-04-2023, 09:16 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 11 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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
Reply With Quote
  #3  
Old 02-04-2023, 09:20 AM
PointyHead PointyHead is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 8 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2013
Advanced Beginner
Is it possible to create a shortcut for a command that's not in "all commands"?
 
Join Date: Dec 2013
Posts: 36
PointyHead is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 02-04-2023, 09:29 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 11 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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
Reply With Quote
  #5  
Old 02-04-2023, 10:56 AM
Charles Kenyon Charles Kenyon is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 11 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,136
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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
Reply With Quote
  #6  
Old 02-04-2023, 11:06 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 11 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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
Reply With Quote
  #7  
Old 02-04-2023, 11:16 AM
AlanCantor AlanCantor is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 10 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2019
Competent Performer
 
Join Date: Nov 2020
Posts: 137
AlanCantor is on a distinguished road
Default

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".
Reply With Quote
  #8  
Old 02-04-2023, 01:40 PM
PointyHead PointyHead is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 8 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2013
Advanced Beginner
Is it possible to create a shortcut for a command that's not in "all commands"?
 
Join Date: Dec 2013
Posts: 36
PointyHead is on a distinguished road
Default

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.
Reply With Quote
  #9  
Old 02-04-2023, 01:44 PM
PointyHead PointyHead is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 8 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2013
Advanced Beginner
Is it possible to create a shortcut for a command that's not in "all commands"?
 
Join Date: Dec 2013
Posts: 36
PointyHead is on a distinguished road
Default

Quote:
Originally Posted by AlanCantor View Post
A list of commands will be generated. If hotkeys assigned to a command, the hotkeys appear next to the command names.
.

As I said earlier, PasteUnformatted is not on the all commands list.
Reply With Quote
  #10  
Old 02-04-2023, 07:03 PM
AlanCantor AlanCantor is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 10 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2019
Competent Performer
 
Join Date: Nov 2020
Posts: 137
AlanCantor is on a distinguished road
Default

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.
Reply With Quote
  #11  
Old 02-05-2023, 07:47 AM
PointyHead PointyHead is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 8 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2013
Advanced Beginner
Is it possible to create a shortcut for a command that's not in "all commands"?
 
Join Date: Dec 2013
Posts: 36
PointyHead is on a distinguished road
Default

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!
Reply With Quote
  #12  
Old 02-05-2023, 08:06 AM
AlanCantor AlanCantor is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 10 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2019
Competent Performer
 
Join Date: Nov 2020
Posts: 137
AlanCantor is on a distinguished road
Default

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.
Attached Images
File Type: jpg Tmp..jpg (70.0 KB, 16 views)
Reply With Quote
  #13  
Old 02-05-2023, 09:27 AM
PointyHead PointyHead is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 8 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2013
Advanced Beginner
Is it possible to create a shortcut for a command that's not in "all commands"?
 
Join Date: Dec 2013
Posts: 36
PointyHead is on a distinguished road
Default

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."
Reply With Quote
  #14  
Old 02-05-2023, 12:50 PM
Charles Kenyon Charles Kenyon is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 11 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,136
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #15  
Old 02-05-2023, 12:54 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Is it possible to create a shortcut for a command that's not in "all commands"? Windows 11 Is it possible to create a shortcut for a command that's not in "all commands"? Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,906
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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
Reply With Quote
Reply



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
Is it possible to create a shortcut for a command that's not in "all commands"? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft