Allow Ctrl+V as Paste Special (VBA)

Jasesair

Active Member
Joined
Apr 8, 2015
Messages
282
Office Version
  1. 2016
I have a range of cells that I'd like Ctrl+V to function differently for the end user. When users copy-paste from elsewhere into cells C12:C46 - worksheet name "Sheet A", I'd like that to paste in as text without affecting the formatting. The end user may paste a range of names or just one name.

Any help would be much appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You could use CTRL+ALT+V, then select values from the dropdown !
 
Upvote 0
The end user could be one of 1000 people. It's very hard to control the end user so I need a spreadsheet that's foolproof...so the end user needs to simply hit Ctrl-V to enter their list of names. I need a way to avoid any disruption to formatting.
 
Upvote 0
You'll probably need to use VBA....but sadly, there is no such thing as "foolproof"
 
Upvote 0
Yes, I'm aware I'll need VBA. What I'm attempted hasn't worked so far, so seeking member support.
 
Upvote 0
1. What is the cell range to be copied ?
BUT, if you select any one of the required cells simply to make a data change, using something like a worksheet_selection change event will copy the range across each time ?
So how about this way....put this code in Sheet "A" sheet module.
So anything that gets put in C12:C46 will be treated as values only
VBA Code:
Private Sub worksheet_Change(ByVal target As Range)
If Intersect(target, Range("C12")) Is Nothing Then Exit Sub
Application.EnableEvents = False
With Range("C12:C46")
.Value = .Value
End With
Application.EnableEvents = True
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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
Back
Top