在Chrome中,我可以粘贴文本,而不使用任何格式ctrl+ shift+ V。我怎样才能在 Microsoft Word 中做这样的事情?
Chi*_*hin 19
以下是步骤:
PasteSpecial在宏名称字段中输入并单击创建。Sub PasteSpecial()
On Error GoTo errHandler
Selection.PasteSpecial DataType:=wdPasteText
Exit Sub
errHandler:
Selection.Paste
End Sub
Run Code Online (Sandbox Code Playgroud)
Macro在类别框中,选择PasteSpecial在宏框。在Press new shortcut key框中,输入ctrl+ shift+ V,然后单击分配。这是AutoHotKey宏,它将剪贴板内容作为非格式化文本粘贴到默认情况下使用格式化文本的任何应用程序(Word、Excel、PowerPoint、Outlook、Write,凡是你能想到的。)
\n键盘快捷键:Ctrl++WinV
\n^#v:: ;work with clipboard: paste clipboard content as plain text\n ClipboardOld := ClipboardAll ;save original clipboard contents\n Clipboard = %Clipboard% ;store plain text from clipboard to clipboard\n Send ^v ;send the Ctrl+V command\n Sleep, 250 ;give some time to finish paste (before restoring clipboard)\n Clipboard := ClipboardOld ;restore the original clipboard contents\n ClipboardOld = ;clear temporary variable (potentially contains large data)\n Return\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
27715 次 |
| 最近记录: |