Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
change the default from HTML paste special
How do you change the default HTML to one of the other options in paste
special. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
change the default from HTML paste special
Generally speaking, you would record a macro and then run it whenever
you wanted to paste in a particular format. Note, however, that the available paste formats depend on what is on the clipboard. Therefore you would have to add an error-handling routine to the macro. The most common request is to paste as plain text, which this macro does: Sub PasteUnformatted() On Error Resume Next Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _ Placement:= wdInLine, DisplayAsIcon:=False End Sub It is always possible to paste in text format, assuming that there is something on the clipboard. If the clipboard is empty the PasteSpecial method fails; the On Error Resume Next statement then says the macro should continue with the next statement, which is End Sub. In other words, if the clipboard is empty, the macro just quits without performing an action. (If the macro has more than one command, or if you want a more complex task performed when an error occurs, you cannot use On Error Resume Next.) If you need assistance on how to install a macro, see http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "denoco" wrote in message ... How do you change the default HTML to one of the other options in paste special. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
change the default from HTML paste special
Thank you for your help
"Stefan Blom" wrote: Generally speaking, you would record a macro and then run it whenever you wanted to paste in a particular format. Note, however, that the available paste formats depend on what is on the clipboard. Therefore you would have to add an error-handling routine to the macro. The most common request is to paste as plain text, which this macro does: Sub PasteUnformatted() On Error Resume Next Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _ Placement:= wdInLine, DisplayAsIcon:=False End Sub It is always possible to paste in text format, assuming that there is something on the clipboard. If the clipboard is empty the PasteSpecial method fails; the On Error Resume Next statement then says the macro should continue with the next statement, which is End Sub. In other words, if the clipboard is empty, the macro just quits without performing an action. (If the macro has more than one command, or if you want a more complex task performed when an error occurs, you cannot use On Error Resume Next.) If you need assistance on how to install a macro, see http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "denoco" wrote in message ... How do you change the default HTML to one of the other options in paste special. |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
change the default from HTML paste special
You are welcome.
-- Stefan Blom Microsoft Word MVP "denoco" wrote in message ... Thank you for your help "Stefan Blom" wrote: Generally speaking, you would record a macro and then run it whenever you wanted to paste in a particular format. Note, however, that the available paste formats depend on what is on the clipboard. Therefore you would have to add an error-handling routine to the macro. The most common request is to paste as plain text, which this macro does: Sub PasteUnformatted() On Error Resume Next Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _ Placement:= wdInLine, DisplayAsIcon:=False End Sub It is always possible to paste in text format, assuming that there is something on the clipboard. If the clipboard is empty the PasteSpecial method fails; the On Error Resume Next statement then says the macro should continue with the next statement, which is End Sub. In other words, if the clipboard is empty, the macro just quits without performing an action. (If the macro has more than one command, or if you want a more complex task performed when an error occurs, you cannot use On Error Resume Next.) If you need assistance on how to install a macro, see http://www.gmayor.com/installing_macro.htm. -- Stefan Blom Microsoft Word MVP "denoco" wrote in message ... How do you change the default HTML to one of the other options in paste special. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I change my default email reply format from text to html? | Mailmerge | |||
How to default to "Unformatted Text" in "Paste Special" in Word 20 | Microsoft Word Help | |||
Where can I find the old "Paste Special" (Edit/Paste Special)? | Microsoft Word Help | |||
How can I change the default on "paste special" to "unformatted"? | Microsoft Word Help | |||
Change the default attribute for paste special | Microsoft Word Help |