Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make default paste in Excel just text? 1

Status
Not open for further replies.

RachelD

MIS
Jun 14, 2000
136
US
Does anyone know a way to make the default paste in Excel 2000 be just plain text? Right now you have to go through the whole Paste Special, Text option.

Is there a registry hack or something?

TIA
Rachel
 
A registry change is not necessary.

You could change the Paste command itself with a macro, but I'd suggest you create a "mini" macro and assign that to a shortcut, e.g. Ctrl+Shift+P. Unless there is a good reaoson to do so, the less you change Excel's standard behaviour for simple functions, the better. :)

The macro needs one line only:

Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False

IS


 
Do you know how to do this when the pasted data is coming in from another program (say Access). And by the way, I said Excel 2000 but it was Excel 97 and worked anyway.
 
Sorry , no I don't. :cool:

I've always happily copied and and pasted using Ctrl-C and Ctrl+V for single items such as a fax number from a database. For the rest, it's queries to retrieve data.

Maybe I don't understand your question correctly because of my lack of experience with Access.

IS
 
We figured it out, just in case you were curious...

Sub pastetext()
'
' pastetext from keyboard Macro
'
' Keyboard Shortcut: Ctrl+q
'
ActiveSheet.PasteSpecial Format:="CSV", Link:=False, DisplayAsIcon:=False
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top