Excel Paste Special Text as default

mikemcbain

Board Regular
Joined
Nov 14, 2005
Messages
105
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
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

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
105
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
105
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
105
Office Version
  1. 365
Platform
  1. Windows
Thanks for the netiquette update, needed and appreciated.

Mike.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,287
Messages
5,571,318
Members
412,382
Latest member
Langtn02
Top