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, just tested it in a new sheet as in the attached picture, and it didn't work? The highlight still carries down upon double-clicking.

Also, anything can be done to address the dragging scenario?


2022-07-30 (2).png
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Are you sure that it is normal formatting and not conditional formatting (Edit: having just tested neither are copying down for me)

Book1
EF
34848
44141
55454
66868
79898
833
977
105959
117373
129797
134141
141919
156262
163939
172323
183636
197474
202323
216767
228181
239696
244646
2599
268686
272626
288585
293333
3099
316969
3266
337070
345151
352121
366161
379595
3888
399595
405050
416464
422525
Sheet1
Cell Formulas
RangeFormula
E3:E42E3=F3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E3Cell Value>20textNO
 
Last edited:
Upvote 0
Yeah, just normal formatting. I just highlighted the cells E2 and E8, and I put some random numbers in F column so that I could double click down in column E.
 
Upvote 0
It doesn't behave like that for me when I double click a single cell in the range, it goes from
Book1
EF
34848
441
554
668
798
83
97
1059
1173
1297
1341
1419
1562
1639
1723
1836
1974
2023
2167
2281
2396
2446
259
2686
2726
2885
2933
309
3169
326
3370
3451
3521
3661
3795
388
3995
4050
4164
4225
Sheet1
Cell Formulas
RangeFormula
E3E3=F3


to

Book1
EF
34848
44141
55454
66868
79898
833
977
105959
117373
129797
134141
141919
156262
163939
172323
183636
197474
202323
216767
228181
239696
244646
2599
268686
272626
288585
293333
3099
316969
3266
337070
345151
352121
366161
379595
3888
399595
405050
416464
422525
Sheet1
Cell Formulas
RangeFormula
E3:E42E3=F3
 
Upvote 0
I see. I'll test this on my work computer on Monday and see if I can get it to work there. Not sure why it's not working on my home computer :unsure:
 
Upvote 0
If you can't get it to work on Monday upload a copy of the workbook (sanitize any sensitive data first) to a free file hosting site like www.box.com or www.dropbox.com , mark it for sharing and post the link it provides in the thread and I'll have a look at the workbook.
 
Upvote 0
Good morning,

So here's a test file I just made (faster than sanitizing one of my actual files). It's essentially the same as the one I made at home, and it's not working again 😭😭 I just highlighted E3 and double-clicked down, but highlight carries over.

I hope you can figure why it's not working 🤗

Test1
 
Upvote 0
I'll have a look when I get in from work but just to be clear you are double clicking the actual cell and not the bottom right corner of the cell
 
Upvote 0
Ah, I didn't realize I was supposed to double click the actual cell 🤦‍♂️ Just checked, and it's working well.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,603
Members
452,658
Latest member
GStorm

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