Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
PeterG
 
Posts: n/a
Default how to set up default option for text paste

When I paste text to MS Word from Word or any other application it uses by
defualt style from the source document. I have to use Paste button and select
"Keep Text Only" option to have pasted text formatted as current paragraph.
In most cases I need to have pasted text formatted as current paragraph. Is
there any place where I can speccify default Paste style as "Keep Text Only"?
Thanks a lot!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default how to set up default option for text paste

You could use a macro such as the following:

Sub PasteAsUnformatted()
On Error Resume Next
Selection.PasteSpecial DataType:=wdPasteText
End Sub

For instructions, see http://www.gmayor.com/installing_macro.htm. (The
article also has information on how to add the macro to a toolbar.)

--
Stefan Blom
Microsoft Word MVP


"PeterG" wrote in message
...
When I paste text to MS Word from Word or any other application it

uses by
defualt style from the source document. I have to use Paste button

and select
"Keep Text Only" option to have pasted text formatted as current

paragraph.
In most cases I need to have pasted text formatted as current

paragraph. Is
there any place where I can speccify default Paste style as "Keep

Text Only"?
Thanks a lot!




  #3   Report Post  
Posted to microsoft.public.word.docmanagement
PeterG
 
Posts: n/a
Default how to set up default option for text paste

Thaks a lot for your help!
Could you please tell me - does it mean I have to choose my macro from emnu
to paste text as unformatted or there any way to link this macro to "OnPaste"
event (or something like this)?

"Stefan Blom" wrote:

You could use a macro such as the following:

Sub PasteAsUnformatted()
On Error Resume Next
Selection.PasteSpecial DataType:=wdPasteText
End Sub

For instructions, see http://www.gmayor.com/installing_macro.htm. (The
article also has information on how to add the macro to a toolbar.)

--
Stefan Blom
Microsoft Word MVP


"PeterG" wrote in message
...
When I paste text to MS Word from Word or any other application it

uses by
defualt style from the source document. I have to use Paste button

and select
"Keep Text Only" option to have pasted text formatted as current

paragraph.
In most cases I need to have pasted text formatted as current

paragraph. Is
there any place where I can speccify default Paste style as "Keep

Text Only"?
Thanks a lot!





  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default how to set up default option for text paste

If you name the macro EditPaste (instead of PasteAsUnformatted) it
will override the built-in paste command. But note that this means
you'd have to use Paste Special whenever you actually want to preserve
the formatting (such as when you paste text between different parts of
a document).

--
Stefan Blom
Microsoft Word MVP


"PeterG" wrote in message
...
Thaks a lot for your help!
Could you please tell me - does it mean I have to choose my macro

from emnu
to paste text as unformatted or there any way to link this macro to

"OnPaste"
event (or something like this)?

"Stefan Blom" wrote:

You could use a macro such as the following:

Sub PasteAsUnformatted()
On Error Resume Next
Selection.PasteSpecial DataType:=wdPasteText
End Sub

For instructions, see http://www.gmayor.com/installing_macro.htm.

(The
article also has information on how to add the macro to a

toolbar.)

--
Stefan Blom
Microsoft Word MVP


"PeterG" wrote in message
...
When I paste text to MS Word from Word or any other application

it
uses by
defualt style from the source document. I have to use Paste

button
and select
"Keep Text Only" option to have pasted text formatted as current

paragraph.
In most cases I need to have pasted text formatted as current

paragraph. Is
there any place where I can speccify default Paste style as

"Keep
Text Only"?
Thanks a lot!








  #5   Report Post  
Posted to microsoft.public.word.docmanagement
PeterG
 
Posts: n/a
Default how to set up default option for text paste

Great! That is I was looking for. Thanks a lot! You are the one!


  #6   Report Post  
Posted to microsoft.public.word.docmanagement
PeterG
 
Posts: n/a
Default how to set up default option for text paste

One more thing.
This macro DOESN'T work when I paste text using Drag'n'Drop with Ctrl
button pressed. Is there any way to make it working in this case too?

Thanks.
  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default how to set up default option for text paste

Glad I could help.

--
Stefan Blom
Microsoft Word MVP


"PeterG" wrote in message
news
Great! That is I was looking for. Thanks a lot! You are the one!



  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom
 
Posts: n/a
Default how to set up default option for text paste

Not that I know of. You could try asking in a programming newsgroup
such as microsoft.public.word.vba.general.

--
Stefan Blom
Microsoft Word MVP


"PeterG" wrote in message
...
One more thing.
This macro DOESN'T work when I paste text using Drag'n'Drop with
Ctrl
button pressed. Is there any way to make it working in this case
too?

Thanks.





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
Mail merge - Ask / If function Ian Rowe Mailmerge 2 May 5th 06 02:52 PM
default paste gussie Microsoft Word Help 1 April 11th 06 11:03 AM
paste option button [email protected] New Users 1 June 15th 05 02:58 AM
Default font - possible bulletproof fix in Word 2003 [email protected] Microsoft Word Help 0 January 14th 05 09:14 PM
Very Slow Copy and Paste Growler Microsoft Word Help 0 January 3rd 05 09:35 PM


All times are GMT +1. The time now is 07:20 PM.

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"