Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
mcloo mcloo is offline
external usenet poster
 
Posts: 2
Default problem creating a Word paste special macro

I am using Word 2003 on an XP operating system. I created a new macro I
called "PasteSpecial." To create the macro, I went to Tools Macro Record
New Macro. I named the macro "PasteSpecial" and clicked the Keyboard icon to
create a keyboard shortcut. I assigned Alt+V as the keyboard shortcut and
clicked Assign and then Closed.

The macro began recording. Before creating the macro I copied a couple of
lines of text that I wanted to paste in my document. I then placed my cursor
at the spot at which I planned to paste the text. After the macro began
recording, I clicked Edit Paste Special Unformatted Text. The text was
pasted and was formatted according to the style of the paragraph into which I
pasted it; not its original style.

I then clicked the stop button on the macro toolbar.

Since this process worked while I was recording the macro, I assumed that it
would work when I clicked Alt+V. However, when I attempted to use the macro
to paste text as unformatted text, the Alt+V action worked in that the text
was pasted; however, it pasted using its original format, not as unformatted
text.

I used this same process to create this same macro in other versions of Word
and did not have a problem. Why am I having a problem now, and what can I do
to make this thing work?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
garfield-n-odie [MVP] garfield-n-odie [MVP] is offline
external usenet poster
 
Posts: 2,587
Default problem creating a Word paste special macro

Yeah, it's a known bug that the macro recorder doesn't quite correctly
record the paste as unformatted text command. Use this macro instead:

Sub PasteUnfText()
On Error GoTo oops
Selection.PasteSpecial DataType:=wdPasteText
End
oops:
Beep
End Sub


mcloo wrote:

I am using Word 2003 on an XP operating system. I created a new macro I
called "PasteSpecial." To create the macro, I went to Tools Macro Record
New Macro. I named the macro "PasteSpecial" and clicked the Keyboard icon to
create a keyboard shortcut. I assigned Alt+V as the keyboard shortcut and
clicked Assign and then Closed.

The macro began recording. Before creating the macro I copied a couple of
lines of text that I wanted to paste in my document. I then placed my cursor
at the spot at which I planned to paste the text. After the macro began
recording, I clicked Edit Paste Special Unformatted Text. The text was
pasted and was formatted according to the style of the paragraph into which I
pasted it; not its original style.

I then clicked the stop button on the macro toolbar.

Since this process worked while I was recording the macro, I assumed that it
would work when I clicked Alt+V. However, when I attempted to use the macro
to paste text as unformatted text, the Alt+V action worked in that the text
was pasted; however, it pasted using its original format, not as unformatted
text.

I used this same process to create this same macro in other versions of Word
and did not have a problem. Why am I having a problem now, and what can I do
to make this thing work?


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
Edit Paste Special - formatting problem galatea2153 Microsoft Word Help 2 February 14th 07 10:12 PM
How I can use Paste Special in Word 2007? IKa2000 Microsoft Word Help 1 July 21st 06 03:35 AM
Where can I find the old "Paste Special" (Edit/Paste Special)? Jacques Microsoft Word Help 1 June 6th 06 04:24 PM
Paste Special Macro coachmike Microsoft Word Help 2 July 7th 05 09:53 PM
word not responding after paste special Futbol Ace Microsoft Word Help 0 February 8th 05 09:25 PM


All times are GMT +1. The time now is 06:46 AM.

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"