Question Locked

Macro to Paste HTML text as Unformatted text

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

On a regular basis, I manually copy/paste HTML to Word 2007 as Unformatted Text.

I created a Macro that was supposed to Paste HTML (or anything on my Clipboard, for that matter) as Unformatted text into a Word Document.

I did this by choosing Tools/Macros/Record New Macro...
Next, I named my new macro PasteAsUnformattedText.
I then assigned Ctrl+Alt+P to the Keyboard Shortcuts.
Next, while the macro was recording, I chose Edit/Paste Special... and then selected 'Unformatted Text'.
Finally, I stopped my macro.

Unfortunately, my macro just pastes 'Formatted' HTML. Are we unable to include the 'Unformated Text' selection in a macro process?

Thank you for your help.

3 replies

by mascott3

It's been a long time since I wrote my question... thank you for replying.

It seems to have worked: 'wdFormatPlainText'

Thanks again!

This discussion is closed to new replies.