Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / March 2006

Tip: Looking for answers? Try searching our database.

Modify default formatting of pasted text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig Fletcher - 23 Mar 2006 04:49 GMT
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
Charles Kenyon - 23 Mar 2006 06:18 GMT
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.
Signature

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.

> 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
Stefan Blom - 23 Mar 2006 09:35 GMT
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.

Signature

Stefan Blom
Microsoft Word MVP

> 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
Craig Fletcher - 23 Mar 2006 15:32 GMT
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?

> Put the following macro in normal.dot in order to intercept the
> EditPaste command:
[quoted text clipped - 18 lines]
>> and fro.
>> Thanks
John McGhie [MVP - Word and Word Macintosh] - 24 Mar 2006 07:55 GMT
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 urP2VaoTGHA.1572@tk2msftngp13.phx.gbl, "Craig
Fletcher" <cfletcher1971@hotmail.com> 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
[quoted text clipped - 23 lines]
>>> and fro.
>>> Thanks

Signature

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

John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh.  Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

<*(((><{ - 25 Mar 2006 21:43 GMT
Would you be willing to share your macro for the INSERT key?  

<*((((><{
Fishy@Ocean.Net

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

>Hi Craig:
>
[quoted text clipped - 48 lines]
>>>> and fro.
>>>> Thanks
John McGhie [MVP - Word and Word Macintosh] - 27 Mar 2006 04:30 GMT
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 bqab22td20tn1vugclicf42gb244j7sog1@4ax.com,

> Would you be willing to share your macro for the INSERT key?
>
[quoted text clipped - 56 lines]
>>>>> and fro.
>>>>> Thanks

Signature

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

John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh.  Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.