Link to home
Start Free TrialLog in
Avatar of hsrstud
hsrstud

asked on

Keyboard shortcut for paste unformatted in PowerPoint 2007

Is it possible to create a keyboard shortcut to paste unformatted text into PowerPoint 2007 using VBA or some other method?

Thanks for the help!
Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't think a shortcut key is possible though it may be possible to do it via a button As such though this wouldn't be much different to selecting on the edit menu.

Chris
Avatar of hsrstud
hsrstud

ASKER

For others that may be interested, this seems to work:

Option Explicit
Sub Paste_Unformatted_Text()
ActiveCell.Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
End Sub
The author comment is wrong and represents an excel solution that to the best of my knowledge cannot be used in PPT.

As I commmented that a button for the purpose could be used, (via a macro) but that the useability improvements would be minimal I suggest that I answered the question reference a keyboard shortcut being impossible but introduced the idea of another way and that as such my answer was correct above and beyond.

Note if the use of a button had been requested I would have suggested something like the snippet below which uses the PPT interface and constants instead of excel.

Chris
Sub Macro1()
    ActiveWindow.Selection.TextRange.PasteSpecial ppPasteText
End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yah I assumed the request to bypass all inputs other than the specific paste unformatted which the pastespecial does not.

Adding a button to call the sub pastes unformatted with one press ... but it's not a keyboard shortcut of course.

Chris
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hsrstud

ASKER

Sorry, I got confused.  After I was unsuccessful trying to create a keyboard shortcut in PowerPoint to paste unformatted text, I moved on to Excel.  When I got it to work in Excel, I forgot this post was about PowerPoint and pasted code.  

It looks like GlennaShaw may have posted the solution, but I'm not willing to spend $30 for this feature, so I didn't try the recommended program. Seeing as there have been multiple approaches suggested, I'm going to split the reward.

Thank you for your help and I apologize for the confusion.
Avatar of hsrstud

ASKER

Here is another free solution that I found:

http://www.stevemiller.net/puretext/