Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
PJB PJB is offline
external usenet poster
 
Posts: 3
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   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
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?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Macro, Problem with Quick Parts Ross from Orlando New Users 2 September 23rd 08 02:17 AM
problem creating a Word paste special macro mcloo Microsoft Word Help 1 July 3rd 08 01:10 AM
simple macro? WordPerfect User Needs Help New Users 5 September 8th 07 09:05 PM
simple macro woe Dan Microsoft Word Help 1 October 11th 06 11:46 PM
Simple macro used to work...? Kenneth Microsoft Word Help 19 October 1st 06 09:26 AM


All times are GMT +1. The time now is 10:40 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"