Is there any way that 'filling' can be restricted to values only and not formatting, perhaps through VBA?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
578
Office Version
  1. 365
Platform
  1. Windows
Hello,

I know that it is possible to right-click and drag and then select 'fill without formatting', but is there any formatting changes can be disabled for dragging/filling, perhaps through a VBA code? :biggrin:

Thanks for any input!
 
Thanks! 🤗 I'll totally take you out for a drink if you're in LA area lol 🙃
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hmm, It worked fine for me. I copied R17:S18 to E18 and it worked fine.

Are you sure you replaced the entire old code with the entire new code?
 
Upvote 0
Control+V works fine, but paste values leads to automatic clearing. (Yes, I completely deleted the old code and pasted the new code)
 
Upvote 0
This is what I did, I selected R17:S18, right clicked, selected copy, selected E18, right clicked & selected paste.
 
Upvote 0
By 'paste values' I mean the paste special for which I have defined a button in the quick access toolbar. It's the button that has a 123 on it.

In the paste menu, it is the first button under "paste values'
 
Upvote 0
I can't be responsible for any buttons you have made.
 
Upvote 0
Well it's the same as the one in the paste menu. It's not just my button. (that's just for quick access)

The standard paste menu has the "paste values" button".
 
Upvote 0
The code handles how the pastes should be done, that is probably the issue.
 
Upvote 0
Yes, I described the "regular paste" (control+V) issues under item A in my post #67.

B and C are for "paste values".
 
Upvote 0

Forum statistics

Threads
1,223,282
Messages
6,171,170
Members
452,386
Latest member
Shahar

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