Solved

Create Word 2007 button to paste Unformatted Text

Posted on 2010-09-13
9
590 Views
Last Modified: 2012-08-13
Hi,

I often want to paste text from web pages and other sources into my Word 2007 documents.

When I do this, I have to click Paste / Paste Special / Unformatted Text.

I would like to be able to create a button on my Quick Access Toolbar that when I click, it just does a 'Paste Unformatted Text' in a single operation without me having to click anything else.  

I cannot see an easy way to do this because the 'Unformatted Text' or 'Paste Unformatted Text' option does not appear under 'All Commands' on the Customize menu of the Quick Access Toolbar: the closest I can get is 'Paste Special' which still needs an additional click to get 'Unformatted text'.

I know that I can copy and paste formats using Ctrl+Shift+C and V, but again that is a two stage process.

What do you think is the best way to achieve this?

Many thanks,
Daz.
0
Comment
Question by:Daz_1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 1

Expert Comment

by:gonzaria
ID: 33662174
Probably the easiest way would be to create a macro, and then add a button for the macro onto your toolbar :-)
0
 
LVL 13

Author Comment

by:Daz_1234
ID: 33662189
Thanks.  What method should be used?
0
 
LVL 1

Accepted Solution

by:
gonzaria earned 500 total points
ID: 33662253
In the developer tab, there is a record macros option.

Create a new macro, name it something, and then it will start "recording"

Go back  to the main tab, perform the "paste special" procedure you described above, then go back to the developers tab and click stop.

There's a thing called the quick access toolbar, you can then customise it by adding a button for your macro (i'll just go back and check on how to get that toolbar up and follow with the rest of the instructions...)
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 1

Expert Comment

by:gonzaria
ID: 33662317
So the toolbar should be there just lurking either above the office button or below the ribbon (my bad, i thought it had to be turned on somewhere).

Right click your quick access toolbar, select customise. From the choose commands drop down box, select macros...you should see the name of yours there. Select it, add it, click ok. Your toolbar will now have a button for the macro. So, all things going well,  you'll be able to copy text from wherever, and click on your new button to paste it :-)
0
 
LVL 13

Author Comment

by:Daz_1234
ID: 33662422
Hi gonzaria,

Have you tried this solution?

I tried your advice, and the macro came up with this method:

Selection.PasteAndFormat (wdPasteDefault)

... but when running the macro it does not work - it just acts like a normal paste.


So I used the VBA editor and spotted another possible parameter.  The following does actually seem to work:

Selection.PasteAndFormat (wdFormatPlainText)

Daz.
0
 
LVL 13

Author Comment

by:Daz_1234
ID: 33662517
Hi gonzaria,

Is there any way I can award you some of the points?  Although the idea you suggested did not work, it did put me on the right path, so I think you deserve some points.  

When I accept my answer, the system won't let me give you some of the points - sort of all or nothing.

Daz.
0
 
LVL 13

Author Comment

by:Daz_1234
ID: 33662533
Ah heck, have them all!
0
 
LVL 1

Expert Comment

by:gonzaria
ID: 33662548
Well spotted - in my test copy and paste i din't grab anything with hyperlinks (its nearly midnight where I am - losing the plot - sorry!)

Selection.PasteAndFormat (wdFormatPlainText) actually does work nicely. And you can still turn the macro into a quick button.

0
 
LVL 13

Author Comment

by:Daz_1234
ID: 34609851
Just a quick comment to anyone finding this question useful.

I now use "PureText" - this is a simple tool that enables you to past the text from the clipboard into any application as pure or unformatted text.  I swear by it now, especially for copying text from web pages into emails as unformatted text.  the default key combination is WinKey + V

Here is the tool:  http://www.stevemiller.net/puretext/
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Outlook Free & Paid Tools
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question