Macro for paste special

B

BonzaiMaster

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?
 
J

Jay Freedman

BonzaiMaster said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top