I've recorded a marco to do a 'Edit/Paste Special.../Unformatted Text" and
assigned it to a keyboard shortcut.

However it simply does a normal paste instead.

This is the recorded VBA:

Sub pastespecial()
'
' pastespecial Macro
' Macro recorded 20/10/2005
'
Selection.PasteAndFormat (wdPasteDefault)
End Sub

Can anyone help please?

Re: Macro for paste special by Jay

Jay
Thu Oct 20 15:25:41 CDT 2005

BonzaiMaster wrote:
> I've recorded a marco to do a 'Edit/Paste Special.../Unformatted
> Text" and assigned it to a keyboard shortcut.
>
> However it simply does a normal paste instead.
>
> This is the recorded VBA:
>
> Sub pastespecial()
> '
> ' pastespecial Macro
> ' Macro recorded 20/10/2005
> '
> Selection.PasteAndFormat (wdPasteDefault)
> End Sub
>
> Can anyone help please?

The macro recorder has many bugs, and this is one of them. Use this line
instead:

Selection.PasteSpecial DataType:=wdPasteText

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org



Re: Macro for paste special by BonzaiMaster

BonzaiMaster
Thu Oct 20 15:31:56 CDT 2005

>
> Selection.PasteSpecial DataType:=wdPasteText
>

That did it. Thanks very much.