Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
denoco denoco is offline
external usenet poster
 
Posts: 2
Default change the default from HTML paste special

How do you change the default HTML to one of the other options in paste
special.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
denoco denoco is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change my default email reply format from text to html? Filo Mailmerge 1 October 17th 06 12:36 PM
How to default to "Unformatted Text" in "Paste Special" in Word 20 Lucky Green Microsoft Word Help 3 October 4th 06 06:52 AM
Where can I find the old "Paste Special" (Edit/Paste Special)? Jacques Microsoft Word Help 1 June 6th 06 04:24 PM
How can I change the default on "paste special" to "unformatted"? dhans Microsoft Word Help 1 January 24th 05 01:28 PM
Change the default attribute for paste special john_lorz Microsoft Word Help 1 November 29th 04 08:58 PM


All times are GMT +1. The time now is 10:20 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"