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" <cfletc...@hotmail.com> wrote in message
news:%23ezcQzi...@TK2MSFTNGP09.phx.gbl...
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
news:%23ezcQzi...@TK2MSFTNGP09.phx.gbl...
"Stefan Blom" <no....@please.xyz> wrote in message
news:eyowwSlT...@TK2MSFTNGP14.phx.gbl...
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 urP2VaoT...@tk2msftngp13.phx.gbl, "Craig
Fletcher" <cfletc...@hotmail.com> wrote:
--
Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.
John McGhie <jo...@mcghie.name>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410
<*((((><{
Fi...@Ocean.Net
In the last exciting episode on Fri, 24 Mar 2006 17:55:42 +1100, "John
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 bqab22td20tn1vugc...@4ax.com,
"<*(((><{" <Fi...@Ocean.Net> wrote:
--