Solved

Create Word 2007 button to paste Unformatted Text

Posted on 2010-09-13
9
583 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
  • 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 12

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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 12

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 12

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 12

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 12

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now