Automatic font change for pasted text

B

Beyond X

In Word 2000, when I copy a text in a Web document (such as a Wikipedia
document) and paste it into a word document, the pasted text is shown in
neither original nor document font (shown in very small letters).
I want to automatically convert the font of copied text to the font of
the document. How can I? Help will be highly appreciated.
 
S

Stefan Blom

Click Edit, and then click Paste Special. Choose to paste as "Unformatted
Text."
 
B

Beyond X

Thank you very much for your response.
I found that your suggestion worked in such a way that first copy a Web
text and then go to Edit/Paste Special and then paste to the document.
But it seems that I need these steps every time I copy. Is there a way
to make this step default so that I need not to visit Edit every time?

Incidentally in an old version of Word (Version 6) pasting a copied text
is automatically converted to the default font. (If another font is
prefered, then select it and go to Font to change it.)
Also when I use Find command, I want to make Find Whole Words Only default.
 
S

Stefan Blom

Beyond X said:
Thank you very much for your response.
I found that your suggestion worked in such a way that first copy a Web
text and then go to Edit/Paste Special and then paste to the document. But
it seems that I need these steps every time I copy. Is there a way to make
this step default so that I need not to visit Edit every time?

You can use a macro such as the following:

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

Add the macro to the Normal template and attach it to a toolbar button (see
http://www.gmayor.com/installing_macro.htm).

If you name the macro EditPaste (instead of PasteAsUnformatted) it will
intercept the standard paste command in Word in which case a toolbar button
is not needed (but note that this means that you will have to use Paste
Special if you want to copy and paste tables, for example).
Incidentally in an old version of Word (Version 6) pasting a copied text
is automatically converted to the default font. (If another font is
prefered, then select it and go to Font to change it.)

The behavior might very well depend on the version of Word but also on
whether you are pasting between Word documents or from an external
application. Note that Word 2007 allows you to choose the default paste
format (in the Advanced category of the Word Options dialog box). Leaving
the defaults should do what you want when pasting between Word documents, I
believe.
Also when I use Find command, I want to make Find Whole Words Only
default.

As far as I know, there is no built-in method to accomplish that. Ask in a
programming newsgroup such as microsoft.public.word.vba.general.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top