2

While using a word processor I prefer to user the keyboard almost exclusively, but when pasting text in MS Word I seem forced to use the mouse. I can find no way to specify how to treat formatting (keep source / match destination / text only) on a one-off basis without using the mouse (distracting and slow) or altering my default settings (even worse).

Is there a way to do this? It seems to me I need either a keyboard shortcut to enter the Paste Options dialogue after pasting or a different command that I can use to specify the formatting option. I looked at Paste Special, but that only seems to provide one relevant option, namely ‘text only’ (Unformatted Text), while I want ‘keep’ or ‘match’ as well.

I am using MS Word 2007, but an answer applying to other versions would obviously be more generally useful.

P.S. I use MS Office’s Dutch UI for compatibility with colleagues, so various keys and texts above may be inaccurate.

Lernkurve
  • 1,952
  • 7
  • 27
  • 41
PJTraill
  • 261
  • 2
  • 15
  • In Word 2013 when you paste the auto-format box shows up. You can then hit CTRL (then let go) to bring up the sub-menu of paste types, then hit K, M or T to choose how you want to paste it. Does that not work in 2007? – Ƭᴇcʜιᴇ007 May 20 '16 at 16:16
  • @Ƭᴇcʜιᴇ007: No! All I can do is het Escape to get rid of the icon — makes me wonder if I can use 2013 in our organisation! Nice to know, anyway. – PJTraill May 20 '16 at 16:47
  • 1
    Possible duplicate of [What would an Outlook 2007 macro to automate Paste Special - Unformatted Text look like?](http://superuser.com/questions/25170/what-would-an-outlook-2007-macro-to-automate-paste-special-unformatted-text-lo) – Ƭᴇcʜιᴇ007 May 20 '16 at 16:50
  • I realize the marked dupe is for *Outlook* 2007, but Outlook uses Word as it's editor, so the macro should work the same when used in Word. – Ƭᴇcʜιᴇ007 May 20 '16 at 16:50
  • @Ƭᴇcʜιᴇ007: Also, I want to be able to choose Keep or Match as well. Still, perhaps it is a start. – PJTraill May 20 '16 at 16:52
  • 1
    Make multiple macros, only use [wdFormatOriginalFormatting and/or wdFormatSurroundingFormattingWithEmphasis](https://msdn.microsoft.com/en-us/library/bb237976(v=office.12).aspx) insatead of wdFormatPlainText. :) – Ƭᴇcʜιᴇ007 May 20 '16 at 16:58
  • Since the suggest duplicate does not cover the ground I want to remove it, but I don’t know how. – PJTraill May 20 '16 at 16:58
  • @Ƭᴇcʜιᴇ007: Thanks, I may try that and report back. (Also interested to see that ‘match’ means ‘surrounding formatting with emphasis’!) – PJTraill May 20 '16 at 16:59
  • @Ƭᴇcʜιᴇ007: As per comment on answer from Lernkurve, I made macros and assigned them to ``+``+`` + `<`, `|`, `>` respectively for keep,text,merge. This works fine and is good enough for me. – PJTraill May 23 '16 at 12:24
  • @Ƭᴇcʜιᴇ007: P.S. I’d be delighted to upgrade, but this is a company system. – PJTraill May 23 '16 at 12:32

3 Answers3

4

Solution 1: with context menu key

With Word 2013, you can click

  1. the context menu key
  2. followed by either
    • K for Keep Source Formatting,
    • M, Enter for Merge Formatting (yes, strangely enough, an additional Enter was required) or
    • T for Keep Text Only.

Special Paste with context menu key

The context menu key is this one:

context menu key

Source: https://en.wikipedia.org/wiki/Menu_key

Solution 2: with ribbon menu accelerator keys

In Word 2013, click Alt+H, V, then either K, M or T.

Special paste via ribbon

Solution 3: with Special Paste dialog

You can

  1. press Ctrl+Alt+V (instead of just Ctrl+V) to open the Paste Special dialog,
  2. then use Arrow down or Arrow up to change the default selection
  3. and press Enter.

enter image description here

Solution 4: with assigning a keyboard shortcut to a macro

  1. Create a separate macro for each Special Paste option as shown in this Super User answer
  2. Assign a keyboard shortcut to it via menu FileOptionsCustomize RibbonCustomizeCustomize Keyboard
Lernkurve
  • 1,952
  • 7
  • 27
  • 41
  • As I said in the question, this only offers _Unformatted Text_ (which I called “Text only”, not having the English version. None of the other options sounds as if they provide “keep source” or “match destination” formatting (and the help text was unhelpful). – PJTraill May 22 '16 at 15:02
  • @PJTraill _Unformatted Text_ does "match destination" and _Formatted Text (RTF)_ does "keep source". I've updated the screenshot to make it clearer. The default for the regular `Ctrl`+`V` could be changed to "text only" -- but you wrote you didn't want to alter the default. – Lernkurve May 22 '16 at 16:15
  • I’ll try that out — but the dialogue you can click on after inserting offers three possibilities, matching the constants documented at [the link provided by ‘TECHIE007](https://msdn.microsoft.com/en-us/library/bb237976%28v=office.12%29.aspx) in their comment on my question. How can one obtain all three? If one can, how could MS be so obfuscatory in their UI? (Rhetorical question!) – PJTraill May 22 '16 at 20:33
  • @PJTraill You mentioning the "three possibilities" made me think of another solution which I have added as _Solution 1_ above. – Lernkurve May 23 '16 at 05:32
  • @PJTraill I've added another way documented as _Solution 2_ above. How about that one? – Lernkurve May 23 '16 at 05:43
  • @PJTraill I've added yet another idea as _Solution 4_. – Lernkurve May 23 '16 at 05:51
  • Thank-you for the effort, you cover a lot of ground! Perhaps you could mark (2) as only applying to MS Word 2013(?) and up, like (1). In (1) you might also mention, _pace_ ‘TECHIE007, that `` also brings up the menu. Unfortunately I am stuck (as the question says) on 2007, so (1) and (2), while useful to others, do not help me. In (3) it is still unclear how the menu choices relate to the K/M/T of the first two solutions. ‘TECHIE007 had also suggested the same as (4), which is what I have done, assigning them to ``+``+`` + `<`, `|`, `>` respectively for keep,text,merge. – PJTraill May 23 '16 at 12:20
  • I’m afraid I have accepted my own answer instead of yours, as it applies to Work 2007, gives the details I needed, and your suggestion of _Paste Special_ does not seem to work. But your answer is definitely useful, especially for other versions, and still has my upvote! – PJTraill May 24 '16 at 17:13
1

Further to the useful answer by Lernkurve, I conclude that ‘Paste Special…’ does not do the job, while mapping keystrokes to macros created from the ‘paste mode’ dialogue does. Since his first two options apply Word 2013 and up, anyone stuck on 2007 will have to create and map macros.

Recording Macros

To record macros, you need the Developers tab enabled in the ribbon, in Word Options/Popular Options.

Macros for the Paste Modes

The macros needed to do the job, recorded by entering the choice menu after pasting are:

Sub PasteOriginal()
' Paste with option ‘original formatting’
    Selection.PasteAndFormat (wdFormatOriginalFormatting)
End Sub
Sub PasteMatching()
' Paste with option ‘match destination’
    Selection.PasteAndFormat (wdFormatSurroundingFormattingWithEmphasis)
End Sub
Sub PasteText()
' Paste with option ‘only text’
    Selection.PasteAndFormat (wdFormatPlainText)
End Sub

I mapped these to Ctrl+Alt+Shift+(<|||>) for keep format, text only and merge format respectively. I chose the modifier keys Ctrl+Alt+Shift to avoid clashes with predefined mappings, while (<|||>) suggested to me looking back (to the source format), neutral and looking forward (to the destination format), even if those are not really what happens.

Meaning of the Options

The meaning of the options is described as follows on MSDN (I have not tested this thoroughly):

  • Keep source formatting (wdFormatOriginalFormatting): “Preserves original formatting of the pasted material” – I presume this includes styles, but wonder what happens if style names clash. I presume that all current formatting is ignored.
  • Merge formatting (wdFormatSurroundingFormattingWithEmphasis): “Matches the formatting of the pasted text to the formatting of surrounding text” – I believe this means that the characters from the source and any emphasis (bold, italic, _ underlining _) are inserted in the current formatting, while all other original formatting is ignored.
  • Keep Text only (wdFormatPlainText): “Pastes as plain, unformatted text.” – Only the characters from the source are inserted, in the current formatting.

Options in Paste Special

I investigated the options in Paste Special…, recording macros for each option, as in the screenshot of the dialogue in Lernkurve’s answer. Some of them seemed to behave as keep format (sometimes doing odd extra things), others as text only, but none as merge format. (To get all options I had to paste text with some extra formatting, otherwise I just got two options; my set of options included “Picture (Windows Metafile)”, not in his screenshot.)

These were the results:

Sub SpecialPasteDoc() ' MS Office Word-document object
    Selection.PasteSpecial Link:=False, DataType:=wdPasteOLEObject, Placement _
        :=wdInLine, DisplayAsIcon:=False
End Sub
Sub SpecialPasteRTF() ' Formatted text (RTF)

    Selection.PasteAndFormat (wdPasteDefault)
End Sub
Sub SpecialPastePlain() ' Unformatted text
    Selection.PasteAndFormat (wdPasteDefault)
End Sub
Sub SpecialPastePic() ' Picture (Windows Metafile)
    Selection.PasteAndFormat (wdPasteDefault)
End Sub
Sub SpecialPastePicEnhanced() ' Picture (Enhanced Metafile)
    Selection.PasteAndFormat (wdPasteDefault)
End Sub
Sub SpecialPasteHTML() 'HTML Format
    Selection.PasteSpecial Link:=False, DataType:=wdPasteHTML, Placement:= _
        wdInLine, DisplayAsIcon:=False
End Sub
Sub SpecialPasteUnicodeText() ' Unformatted Unicode Text
    Selection.PasteSpecial Link:=False, DataType:=20, Placement:=wdInLine, _
        DisplayAsIcon:=False
End Sub
PJTraill
  • 261
  • 2
  • 15
0

Came here looking for 2013 and later, but I can provide the answer for 2010 and earlier: Alt + H, V, S, V

That key combination is easy to hit quickly. Note, this will bring up the paste special dialog, but you can continue, hitting a shortcut key (first letter) to select "unformatted unicode text" (or whatever it's called), enter to close the dialog, etc.

For match, Microsoft says: Ctrl + V, Ctrl, M