Using CTRL+V to paste values (by default)

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Using CTRL+V to paste values (by default)

Post by Rudi »

Hi,

I was asked this question recently:
Can you tell me if there is a way to change my excel settings so that when I copy and paste, it pastes the value and not the formula. I know of a few ways, but if there is a way to make it my default (by only using ctrl C and ctrl V), it would save me a lot of time.
I answered:
The only way to set paste special: values as the default, is to force a macro to do it on those key strokes. There is no other way to modify Excel to do this. An alternative is to do this is one of the following:

- Position you mouse pointer over the edge of the selected range and drag to the destination using the RIGHT mouse button. When you release the button, you can choose “Copy here as values only” from the context menu.

- Or; Select and CTRL+C to copy, then select destination and CTRL+ALT+V (to paste special). Press V (for values) and ENTER.

Is there another way; or if it has to be a macro, how will one create this to capture the keystrokes to use CTRL+V to paste as values only?

TX
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
sdckapr
3StarLounger
Posts: 392
Joined: 25 Jan 2010, 12:21

Re: Using CTRL+V to paste values (by default)

Post by sdckapr »

I have added the "Paste Values" toolbar button on my toolbar next to the copy button.

You can create the code
Sub PasteValues()
Selection.PasteSpecial Paste:=xlValues
End Sub

And assign it to ctrl-v (or even Ctrl-V so that lower case will paste as normal) and upper case will paste values).

Steve

User avatar
HansV
Administrator
Posts: 78487
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Using CTRL+V to paste values (by default)

Post by HansV »

The user could create a macro in their personal macro workbook:

Code: Select all

Sub PasteValues()
  Selection.PasteSpecial Paste:=xlPasteValues
End Sub
and assign it to Ctrl+v:
- Press Alt+F8 in Excel to activate the Macros dialog.
- Select Personal.xls!PasteValues (in Excel 2007 and later, it'll be Personal.xlsb!PasteValues)
- Click Options...
- Type v in the shortcut key box.
- Click OK.

The Paste button will still perform the standard action.
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Using CTRL+V to paste values (by default)

Post by Rudi »

Thanks again! This is perfect!
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
VegasNath
5StarLounger
Posts: 1185
Joined: 24 Jan 2010, 12:02
Location: Wales, UK.

Re: Using CTRL+V to paste values (by default)

Post by VegasNath »

Rudi wrote:Thanks again! This is perfect!
Rudi, it may well be worth your while to keep in mind that every time you run the paste special macro, undo will be lost. This would be too big a loss (for me).
:wales: Nathan :uk:
There's no place like home.....

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Using CTRL+V to paste values (by default)

Post by Rudi »

VegasNath wrote:
Rudi wrote:Thanks again! This is perfect!
Rudi, it may well be worth your while to keep in mind that every time you run the paste special macro, undo will be lost. This would be too big a loss (for me).
Thanks Vegasnath. I am aware of this and I did mention it to the person who requested this solution from me.
Cheers
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.