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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Simple Paste Macro Problem



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2009, 03:11 AM posted to microsoft.public.word.newusers
PJB
external usenet poster
 
Posts: 18
Default Simple Paste Macro Problem

I am new to Office 2007. I have created a very basic macro to add a paste
unformatted text button to the QAT. The same macro worked perfectly in Word
2003. This is very handy when cutting and pasting from the Internet and from
PDF files.

However, in Word 2007 the macro does not work. I still must go to Home
Paste Paste Special Unformatted Text. This is too many steps for a
commonly used function.

Word 2007 offers more advanced settings for copy, cut, and paste functions
and I wonder if this is where my problem rests. I have tried various
combinations but have not solved my problem. I prefer keeping these settings
at their default settings.

Any thoughts?
  #2  
Old April 27th, 2009, 06:37 AM posted to microsoft.public.word.newusers
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Simple Paste Macro Problem

The following will work

Sub PasteUnfText()
On Error GoTo Oops
Selection.PasteSpecial DataType:=wdPasteText, _
Placement:=wdInLine
End
Oops:
Beep
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



PJB wrote:
I am new to Office 2007. I have created a very basic macro to add a
paste unformatted text button to the QAT. The same macro worked
perfectly in Word 2003. This is very handy when cutting and pasting
from the Internet and from PDF files.

However, in Word 2007 the macro does not work. I still must go to
Home Paste Paste Special Unformatted Text. This is too many
steps for a commonly used function.

Word 2007 offers more advanced settings for copy, cut, and paste
functions and I wonder if this is where my problem rests. I have
tried various combinations but have not solved my problem. I prefer
keeping these settings at their default settings.

Any thoughts?



 




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


All times are GMT +1. The time now is 07:26 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.