Prevent increment when using autofill

happydonut

Board Regular
Joined
Nov 28, 2019
Messages
57
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have an Excel sheet, where sometimes I just want to left click and drag a value from a certain cell and downward to copy/paste it (the autofill + sign) But in some occations, the value is being added by one (1) for each row. Can I prevent this from happening with a VBA code? I only want to copy the original value.

Thanks.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try holding down the Ctrl key as you drag the fill handle.
 
Upvote 0
I know about Ctrl key. But I need a VBA code so I dont have to hold down the Ctrl.
See my post right above yours. They key is the Type:=xlFillCopy argument on the end of the command.
 
Upvote 0
See my post right above yours. They key is the Type:=xlFillCopy argument on the end of the command.
I am probably doing something wrong. You mean just use the code as is? I tried that now but didnt work.
 
Upvote 0
I am probably doing something wrong. You mean just use the code as is? I tried that now but didnt work.
Please post your actual code so we can see it, and then we should be able to help you clean it up.
 
Upvote 0
Are you dragging the fill handle manually?
 
Upvote 0
As far as I know, that is not possible.
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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