A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Modify default formatting of pasted text



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2006, 03:49 AM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

Is there a way that you can make default formatting of pasted text to ALWAYS
match destination formatting, instead of having the little menu come up and
having to choose that option each time. Or, maybe change it to "Keep text
only?" Basically, I'd like the ability to change the default paste format to
and fro.
Thanks


  #2  
Old March 23rd, 2006, 05:18 AM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

No. In some templates or even documents, I've written macros that intercept
Ctrl-V and paste the way I want (usually unformatted text). Since that is
the way I almost always paste, it works. Otherwise, you can have the macro
intercept the actual Word command but it takes more to do that.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"Craig Fletcher" wrote in message
...
Is there a way that you can make default formatting of pasted text to
ALWAYS match destination formatting, instead of having the little menu
come up and having to choose that option each time. Or, maybe change it to
"Keep text only?" Basically, I'd like the ability to change the default
paste format to and fro.
Thanks



  #3  
Old March 23rd, 2006, 08:35 AM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

Put the following macro in normal.dot in order to intercept the
EditPaste command:

Sub EditPaste
On Error Resume Next
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _
Placement:= wdInLine, DisplayAsIcon:=False
End Sub

If you are unfamiliar with macros, see the installation instructions
at: http://gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP


"Craig Fletcher" wrote in message
...
Is there a way that you can make default formatting of pasted text

to ALWAYS
match destination formatting, instead of having the little menu come

up and
having to choose that option each time. Or, maybe change it to "Keep

text
only?" Basically, I'd like the ability to change the default paste

format to
and fro.
Thanks








  #4  
Old March 23rd, 2006, 02:32 PM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

You would think this would be something that could be more easily
configured. I wonder if this would be a valid DCR (Design change Request) at
Microsoft for Office 12? I have a good relationship with them, perhaps I
should submit this request, or have you guys already done that?


"Stefan Blom" wrote in message
...
Put the following macro in normal.dot in order to intercept the
EditPaste command:

Sub EditPaste
On Error Resume Next
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _
Placement:= wdInLine, DisplayAsIcon:=False
End Sub

If you are unfamiliar with macros, see the installation instructions
at: http://gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP


"Craig Fletcher" wrote in message
...
Is there a way that you can make default formatting of pasted text

to ALWAYS
match destination formatting, instead of having the little menu come

up and
having to choose that option each time. Or, maybe change it to "Keep

text
only?" Basically, I'd like the ability to change the default paste

format to
and fro.
Thanks










  #5  
Old March 24th, 2006, 06:55 AM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

Hi Craig:

That's only been submitted 9,999 times. We need 10,000 to get it on the
list, so PLEASE submit it :-)

However, you will find that the macro method is actually a very easy way to
do it. I normally use a macro similar to Stefan's (mine does a 'fall-back',
depending on what is on the clipboard).

I have another macro, which I assign to the Insert key, that runs Word's
default paste command. There are times (very rare...) when you do NOT want
the thing to paste as text. For example: When you have a picture on the
clipboard.

The problem is that "Match destination format" is not a VBA-accessible
option. If you paste as "Text Only", it "will" match the destination
formatting. But if the content of the clipboard is NOT text, you get
nothing :-) And VBA does not provide a way to discover what *is* on the
clipboard...

Cheers


On 24/3/06 1:32 AM, in article , "Craig
Fletcher" wrote:

You would think this would be something that could be more easily
configured. I wonder if this would be a valid DCR (Design change Request) at
Microsoft for Office 12? I have a good relationship with them, perhaps I
should submit this request, or have you guys already done that?


"Stefan Blom" wrote in message
...
Put the following macro in normal.dot in order to intercept the
EditPaste command:

Sub EditPaste
On Error Resume Next
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _
Placement:= wdInLine, DisplayAsIcon:=False
End Sub

If you are unfamiliar with macros, see the installation instructions
at:
http://gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP


"Craig Fletcher" wrote in message
...
Is there a way that you can make default formatting of pasted text

to ALWAYS
match destination formatting, instead of having the little menu come

up and
having to choose that option each time. Or, maybe change it to "Keep

text
only?" Basically, I'd like the ability to change the default paste

format to
and fro.
Thanks











--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

  #6  
Old March 25th, 2006, 08:43 PM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

Would you be willing to share your macro for the INSERT key?

*(((({


In the last exciting episode on Fri, 24 Mar 2006 17:55:42 +1100, "John
McGhie [MVP - Word and Word Macintosh]" wrote:

Hi Craig:

That's only been submitted 9,999 times. We need 10,000 to get it on the
list, so PLEASE submit it :-)

However, you will find that the macro method is actually a very easy way to
do it. I normally use a macro similar to Stefan's (mine does a 'fall-back',
depending on what is on the clipboard).

I have another macro, which I assign to the Insert key, that runs Word's
default paste command. There are times (very rare...) when you do NOT want
the thing to paste as text. For example: When you have a picture on the
clipboard.

The problem is that "Match destination format" is not a VBA-accessible
option. If you paste as "Text Only", it "will" match the destination
formatting. But if the content of the clipboard is NOT text, you get
nothing :-) And VBA does not provide a way to discover what *is* on the
clipboard...

Cheers


On 24/3/06 1:32 AM, in article
, "Craig
Fletcher" wrote:

You would think this would be something that could be more easily
configured. I wonder if this would be a valid DCR (Design change Request) at
Microsoft for Office 12? I have a good relationship with them, perhaps I
should submit this request, or have you guys already done that?


"Stefan Blom" wrote in message
...
Put the following macro in normal.dot in order to intercept the
EditPaste command:

Sub EditPaste
On Error Resume Next
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _
Placement:= wdInLine, DisplayAsIcon:=False
End Sub

If you are unfamiliar with macros, see the installation instructions
at:
http://gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP


"Craig Fletcher" wrote in message
...
Is there a way that you can make default formatting of pasted text
to ALWAYS
match destination formatting, instead of having the little menu come
up and
having to choose that option each time. Or, maybe change it to "Keep
text
only?" Basically, I'd like the ability to change the default paste
format to
and fro.
Thanks











  #7  
Old March 27th, 2006, 04:30 AM posted to microsoft.public.word.formatting.longdocs
external usenet poster
 
Posts: n/a
Default Modify default formatting of pasted text

The top macro simply intercepts the standard "EditPaste" command wherever it
appears. If you name a macro the same as a Word command, it replaces the
command.

The second macro performs a normal "Let Word figure it out" paste. That's
the one I put on the Insert key.


Sub EditPaste()
On Error GoTo notAvailable

Selection.PasteSpecial Link:=False, DataType:=wdPasteText
End

notAvailable:
Selection.Paste

End Sub

Sub NormalPaste()

Selection.Paste

End Sub

On 26/3/06 6:43 AM, in article ,
"*((({" wrote:

Would you be willing to share your macro for the INSERT key?

*(((({


In the last exciting episode on Fri, 24 Mar 2006 17:55:42 +1100, "John
McGhie [MVP - Word and Word Macintosh]" wrote:

Hi Craig:

That's only been submitted 9,999 times. We need 10,000 to get it on the
list, so PLEASE submit it :-)

However, you will find that the macro method is actually a very easy way to
do it. I normally use a macro similar to Stefan's (mine does a 'fall-back',
depending on what is on the clipboard).

I have another macro, which I assign to the Insert key, that runs Word's
default paste command. There are times (very rare...) when you do NOT want
the thing to paste as text. For example: When you have a picture on the
clipboard.

The problem is that "Match destination format" is not a VBA-accessible
option. If you paste as "Text Only", it "will" match the destination
formatting. But if the content of the clipboard is NOT text, you get
nothing :-) And VBA does not provide a way to discover what *is* on the
clipboard...

Cheers


On 24/3/06 1:32 AM, in article
, "Craig
Fletcher" wrote:

You would think this would be something that could be more easily
configured. I wonder if this would be a valid DCR (Design change Request) at
Microsoft for Office 12? I have a good relationship with them, perhaps I
should submit this request, or have you guys already done that?


"Stefan Blom" wrote in message
...
Put the following macro in normal.dot in order to intercept the
EditPaste command:

Sub EditPaste
On Error Resume Next
Selection.PasteSpecial Link:=False, DataType:=wdPasteText, _
Placement:= wdInLine, DisplayAsIcon:=False
End Sub

If you are unfamiliar with macros, see the installation instructions
at:
http://gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP


"Craig Fletcher" wrote in message
...
Is there a way that you can make default formatting of pasted text
to ALWAYS
match destination formatting, instead of having the little menu come
up and
having to choose that option each time. Or, maybe change it to "Keep
text
only?" Basically, I'd like the ability to change the default paste
format to
and fro.
Thanks












--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Feedback on table setup Little Penny Database Design 1 December 28th, 2005 11:32 AM
Edit/Add record in form from cmdButton doodle General Discussion 3 December 28th, 2005 03:06 AM
Newbie table Layout (Posted as suggested by Tom Lake for feedback) Little Penny Using Forms 2 December 25th, 2005 04:44 PM
Word applies direct format on File open Uriel General Discussion 16 November 27th, 2005 07:22 PM
Change font of part of text John Powerpoint 7 March 15th, 2005 10:10 AM


All times are GMT +1. The time now is 09:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.