Excel Paste Special Text as default

mikemcbain

Board Regular
Joined
Nov 14, 2005
Messages
129
Office Version
  1. 365
Platform
  1. Windows
G'day Magicians

I am doing lots and lots (100's) of copy and paste from web sites into Excel spreadsheets every day of the week and I have a Paste Special Button on the Toolbar but both this and right clicking bring up HTML as the default with Unicode text next and Text on the bottom.

It would save me a click every time if Text were the default.

Is that possible to arrange in some way?

I am using Excel 2003 SP3

With thanks

Taswegian
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

sweater_vests_rock

Well-known Member
Joined
Oct 8, 2004
Messages
1,657
mike.

this macro will paste whatever is on the clipboard as text in the active cell:
Code:
Sub PasteAsText()
    ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _
        False
End Sub
you can assign this to a toolbar icon by first copying this into a new module in the VBEditor and then

1)Going to Tools->Customize on the menubar
2)Click on the Commands tab
3)Scroll down the categories List Box to "Macros"
4)Click and drag the smiley face icon from the Commands list box up to a toolbar of your choosing
5)With the smiley face icon still highlighted, goto Modify Selection -> Assign Macro (on the Customize form)
6) Select PasteAsText from the Macro Menu and click "OK"
7) You can quit now, or you can edit the image using Modify Selection button

now after you copy something from a website, you can select and appropriate cell in your workbook and then click on the icon to pastespecial. an alternative approach would be to assign a keyboard shortcut to your macro. this can be accomplished by

1) Goto Tools->Macros->Macros on the menubar
2) Select the PasteAsText from the Macro Menu and click "Options"
3) Follow the commands on the next form

hope this helps. ben.
 

mikemcbain

Board Regular
Joined
Nov 14, 2005
Messages
129
Office Version
  1. 365
Platform
  1. Windows
Ben

Magic that will help me considerably, many thanks.

Mike.
 

mikemcbain

Board Regular
Joined
Nov 14, 2005
Messages
129
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Firefytr

I only posted to the other forum after no responses were received here in the first 12 hours. Is that an OK thing to do?

Mike.
 

sweater_vests_rock

Well-known Member
Joined
Oct 8, 2004
Messages
1,657
i'm not zack, but probably would be best to delete your initial post before reposting (i think this is possible?). i would have been bummed if i had worked this to find you didn't need the solution anymore!

ben.
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Yes it's ok, it's just a courtesy. As Ben points out, it's kind of a bummer for people who are working on simultaneous solutions. But it's ok.
 

mikemcbain

Board Regular
Joined
Nov 14, 2005
Messages
129
Office Version
  1. 365
Platform
  1. Windows
Thanks for the netiquette update, needed and appreciated.

Mike.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,055
Messages
5,835,157
Members
430,342
Latest member
Sailingexcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top