D
dderolph
I've done this in Word 2003 but can't get a macro to work right in Word 2007.
I want to record a macro to paste text from an external source as unformatted
text. I run the macro recorder and go through the sequence. It works but it
does not work right. It simply pastes, retaining the format from the source
rather than pasting as unformatted text, even though I selected
UnformattedText while recording the macro. Visual Basic editor shows this
code:
Sub PasteText()
'
' PasteText Macro
'
'
Selection.PasteAndFormat (wdPasteDefault)
End Sub
Why is it showing (wdPasteDefault) when I chose UnformattedText when
recording the macro? I'd be glad to fix this via the Visual Basic editor but
I don't know how.
I want to record a macro to paste text from an external source as unformatted
text. I run the macro recorder and go through the sequence. It works but it
does not work right. It simply pastes, retaining the format from the source
rather than pasting as unformatted text, even though I selected
UnformattedText while recording the macro. Visual Basic editor shows this
code:
Sub PasteText()
'
' PasteText Macro
'
'
Selection.PasteAndFormat (wdPasteDefault)
End Sub
Why is it showing (wdPasteDefault) when I chose UnformattedText when
recording the macro? I'd be glad to fix this via the Visual Basic editor but
I don't know how.