Can we disable the AutoFill functionality on certain cells only ?

Jaafar Tribak

Well-known Member
Joined
Dec 5, 2002
Messages
9,643
Office Version
  1. 2016
Platform
  1. Windows
Hi.

I want to prevent copying onto some specific cells when holding and dragging adjacent cells . In other words not to allow AutoFilling should those specific cells come within range of the autofill area.

Disabling the AutoFill functionality via ( Tools>Options>Edit>Allow Cell Drag and Drop ) is not an option because this applies to the entire application. I only need this on specific cells and want to keep the AutoFill feature for the rest of the worksheet.

I have been playing around with some code but it is proving more difficult than I initially thought unless I am missing something.

Any ideas ?
 
Are you locking the clipboard at the start of the code?
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Thanks everyone for your help.

I have built on Andrew's last suggestion and it is now working just fine.
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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