#1   Report Post  
Ab
 
Posts: n/a
Default New macro in Word

It was a piece of cake to create a macro in the previous versions of Word. I
think it's an embarassment to make it so buggy in the MS Word 2003.

I've created a macro "PasteSpecial" which is recorded as Edit/Paste
Special.../Unformatted Text. However it's almost never works as a set of
recorded manual steps, i.e. when I do it manually it copies the text
formatted as destination paragraph, when I do the macro it actes as I paste
the formatted text. Any ideas how to fix it, or at least hwo to report this
problem to Microsoft?

Thanks a lot in advance for your reply.

  #2   Report Post  
Jezebel
 
Posts: n/a
Default

Recording has always been a lousy way to create macros. Problems like the
one you describe were rife in W2000 also. The issue is that the recorded
macro is specific to the document and context in which it is recorded. If
you try to run the macro in a different context, it fails, as you observe.

And the answer is the same as it was in W2000: open the macro in VBA and fix
it.




"Ab" wrote in message
...
It was a piece of cake to create a macro in the previous versions of Word.

I
think it's an embarassment to make it so buggy in the MS Word 2003.

I've created a macro "PasteSpecial" which is recorded as Edit/Paste
Special.../Unformatted Text. However it's almost never works as a set of
recorded manual steps, i.e. when I do it manually it copies the text
formatted as destination paragraph, when I do the macro it actes as I

paste
the formatted text. Any ideas how to fix it, or at least hwo to report

this
problem to Microsoft?

Thanks a lot in advance for your reply.



  #3   Report Post  
Graham Mayor
 
Posts: n/a
Default

As Jezebel indicates the macro recorder is no less efficient than it was in
earlier versions. In this instance, change your code to

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


--

Graham Mayor - Word MVP

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



Ab wrote:
It was a piece of cake to create a macro in the previous versions of
Word. I think it's an embarassment to make it so buggy in the MS Word
2003.

I've created a macro "PasteSpecial" which is recorded as Edit/Paste
Special.../Unformatted Text. However it's almost never works as a set
of recorded manual steps, i.e. when I do it manually it copies the
text formatted as destination paragraph, when I do the macro it actes
as I paste the formatted text. Any ideas how to fix it, or at least
hwo to report this problem to Microsoft?

Thanks a lot in advance for your reply.



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
Basic macros query - where are they assigned to? Bert Coules New Users 15 January 18th 05 12:28 PM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM
word xp crashes after macros are recorded kharris0405 Microsoft Word Help 3 January 11th 05 10:50 PM
WordPerfect - copying formatting Morgan Page Layout 1 January 10th 05 05:00 PM
WP Delay Code - Word Equiv Mike G - Milw, WI Microsoft Word Help 6 January 10th 05 04:12 PM


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