Discussion on:

9
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Another way
djp81s8@... Updated - 15th Aug 2007
When you paste something into word a little clipboard appears it gives you options to keep the formating or not.
Great tip! (nice blog too). You can also redefine your ctrl-V key so that it always pastes unformatted, which is what I have done.
Doesn't work for me.

I get "Selection.PasteSpecial DataType:=wdPasteText" pasted into my document when I try to run your macro. What am I doing wrong?
0 Votes
+ -
Never mind
eman6101@... 3rd Oct 2007
Duh, Of course it psated that, I had just selected it.
Very useful - note that the equivalent VBA in Powerpoint that works for me is:

ActiveWindow.Selection.TextRange.PasteSpecial DataType:=ppPasteText

You don't seem to be able to add it as a keyboard shortcut, but you can add it as a toolbar button.
I tried your VBA code and it didn't work. I'm using PPT 2003, if that makes a difference. I know very little about Macro's, but this seemed like a good time to learn. I first created a module in the VBA editor which looked like this
Sub NoFormatPaste()
ActiveWindow.Selection.TextRange.PasteSpecial DataType:=ppPasteTextSelection.PasteSpecial DataType:=ppPasteText
End Sub

I saved it. And then I copied the individual line of text from an excel document. In ppt, I clicked my newly made button (without keyboard shortcut) and nothing happened. No bug found. Simply nothing happened. Any idea what's going on here?
0 Votes
+ -
That's an awful lot of work when you could just use Ctrl+Alt+V. I apologize in advance for any bubbles burst. wink
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.