Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 02-05-2023, 02:24 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: 134
AlanCantor is on a distinguished road
Default

Quote:
Good catch!



I hadn't noticed the PasteTextOnly command before, but I am assuming that it has been around for years.
I wish I had an old version of Word to check this. I've been customizing Word for 25+ years, and until now, not noticed "PasteTextOnly." I've always used VBA to achieve this. I don't think I've updated this code in decades:

Code:
Sub PasteVerySpecial()
    Selection.PasteSpecial Link:=False, DataType:=wdPasteText, Placement:= _
        wdInLine, DisplayAsIcon:=False
End Sub

I wouldn't be surprised to find out that the "PasteTextOnly" command was added relatively recently. I think I would have spotted it in Word 2007 and 2010. I spent significant amounts of time messing with both.
Reply With Quote
  #17  
Old 02-05-2023, 04:20 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,083
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

Quote:
Originally Posted by AlanCantor View Post
***
I wouldn't be surprised to find out that the "PasteTextOnly" command was added relatively recently. I think I would have spotted it in Word 2007 and 2010. I spent significant amounts of time messing with both.
PasteTextOnly is there in Word 2010 for keyboard shortcuts.
Reply With Quote
  #18  
Old 02-05-2023, 05:20 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,872
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

Quote:
Originally Posted by Charles Kenyon View Post
PasteTextOnly is there in Word 2010 for keyboard shortcuts.
Thanks for checking, Charles.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #19  
Old 02-06-2023, 11:37 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: 134
AlanCantor is on a distinguished road
Default

I asked a colleague, who uses Word 2003, to check the list of commands. He reports no "PasteTextOnly". So it's not a legacy command.

If the command was absent in Word 2003, but available in Word 2010, perhaps PasteTextOnly was introduced in Word 2007 as part of the effort to "modernize" Word by replacing menus with ribbons.
Reply With Quote
  #20  
Old 02-06-2023, 12:38 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,872
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

Quote:
Originally Posted by AlanCantor View Post
I asked a colleague, who uses Word 2003, to check the list of commands. He reports no "PasteTextOnly". So it's not a legacy command.

If the command was absent in Word 2003, but available in Word 2010, perhaps PasteTextOnly was introduced in Word 2007 as part of the effort to "modernize" Word by replacing menus with ribbons.
Was the Paste Options button available in Word 2003 (I don't remember)? Nowadays, the plain text (unformatted text) option is called "Keep Text Only" on the Paste Options button, so I suppose there is some logic behind the command being called PasteTextOnly.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #21  
Old 02-06-2023, 01:05 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: 134
AlanCantor is on a distinguished road
Default

Quote:
Originally Posted by Stefan Blom View Post
Was the Paste Options button available in Word 2003 (I don't remember)?
I don't remember, either, but I think the answer is no. There wasn't anything like the "Paste Options" control built into the ribbon.

In Office 2003, there were five main ways to activate commands: by choosing a command from a menu; by right-clicking a screen object (which opened a "context menu" consisting of a vertical list of context-appropriate commands). Right clicking a screen object could also be done by giving the object focus and pressing Shift + F10; by choosing a button from a floating toolbar; by pressing a hotkey (e.g., F7 = spell check; Ctrl + U = underline; etc.); and by pressing a sequence of individual keys to interact with menus and toolbars (e.g., press Alt (or F10), then F, then A to invoke the "Save As..." dialog.) The last access method is actually the same as the first, but done via keyboard instead of mouse.

In a way, the modern "Paste Options" area of the ribbon is a little like a Word 2003 toolbar. But I don't think there was a toolbar for pasting. Creating custom toolbars in Word 2003 was easy to do. I did it all the time. But it never occurred to me to create a paste toolbar!
Reply With Quote
  #22  
Old 02-06-2023, 01:10 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,083
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

Suzanne Barnhill would know.

While there may not have been Paste Options, there certainly was Paste Special. I recall being able to paste as text only under Paste Special.

The command in Word 97-Word 2003 may have shown up as something like EditPasteTextOnly or EditPasteSpecialTextOnly.
Reply With Quote
  #23  
Old 02-06-2023, 01:14 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,872
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

Quote:
Originally Posted by Charles Kenyon View Post
Suzanne Barnhill would know.

While there may not have been Paste Options, there certainly was Paste Special. I recall being able to paste as text only under Paste Special.

The command in Word 97-Word 2003 may have shown up as something like EditPasteTextOnly or EditPasteSpecialTextOnly.
I just remembered Shauna Kelly's article on the paste options, which reminds me that paste options were indeed included in Word 2003:

How Paste Options works in Microsoft Word 2002 and 2003 | ShaunaKelly.com
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #24  
Old 02-06-2023, 01:47 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: 134
AlanCantor is on a distinguished road
Default

Hi Stefan,



Reading this article is like stepping into a time machine and going back 20 years! I had completely forgotten about that Word setting.



There were fewer Word settings in those days...
Reply With Quote
  #25  
Old 02-06-2023, 01:50 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,872
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

Quote:
Hi Stefan,

Reading this article is like stepping into a time machine and going back 20 years! I had completely forgotten about that Word setting.

Alan:

Sadly, Shauna Kelly passed away about a decade ago, but her article on multilevel numbering remains the best source on the topic.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #26  
Old 02-06-2023, 03:26 PM
spillerbd spillerbd 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 2021
Competent Performer
 
Join Date: Jan 2016
Posts: 130
spillerbd is on a distinguished road
Default

One could add the function "Keep Text Only" to the QAT and access it via ALT, keystroke, depending on its position on the QAT.
Alan's answer #12 is definitely preferred. However, if a user already has CTRL+P assigned or has add-ins making a CTRL+ option not feasible, using the QAT and its shortcut options may be an option.
It can be confusing finding some commands with names slightly off from what is exprected.
Reply With Quote
Reply

Thread Tools
Display Modes


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 09:43 PM.


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