VBA FillDown vs. Autofill errors out

BillTony

Board Regular
Joined
May 3, 2017
Messages
70
Hi there,

I am having trouble (seemingly) with the syntax / usage of "FillDown" in the code snippet low.

I have a varying number of rows (number of rows added each day change drastically) in column C of a dataset.

I then have a unique numeric code that populates column B down to the last row in column C containing a value.

Next day, the process repeats.

However, the numeric code in column B must NOT increment.

The starting point for the new daily "add" is designated in the "Paste" section.

The line of code having the range of B66:B, etc. works - but obviously that requires a "static" or known start point.

The FillDown segmen that has the range containing "ActiveCell" is NOT functional - but that is really what I am seeking guidance on.

Any help is greatly appreciated!

Code:
'PASTE the COPIED VALUE.
    Range("B1").End(xlDown).Offset(1, 0).Select
    With Selection
    ActiveSheet.Paste
    End With


'Set the FILL DESTINATION.
    Range("B66:B" & Last_Row_ColC).FillDown
  
'Set the FILL DESTINATION.
    'Range(ActiveCell & Last_Row_ColC).FillDown
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If you don't want the value in column B why not use something like this?
Code:
Range("B6:B" & Last_Row_ColC).Value= Range("B6").Value
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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