Fill down variable data

71Neb

New Member
Joined
Dec 13, 2017
Messages
9
I have a column that includes two letters, EZ, then the date, followed by rack number, for labels.
These decrement down the column as such:
EZ12151736, EZ12151735, EZ12151734....
When the last two numbers reach 01, it starts over with the previous day:
EZ12141736, EZ12141735....
I have this done for a two week period.
I would like to be able to change the length of the sheet to a variable amount of days.
I can't do one week without either changing the entire sheet manually or throwing away 250 labels.
Is there a way to automate this, by entering a start date, and possibly number of racks per day?
 
I have this that works, but I need the Sheet1 A10 to be whatever is in Sheet2 C9. A2 won't change.

Sub FillDown()


Worksheets("Sheet1").Range("A2:A10").FillDown


End Sub
You mean like this?
Code:
Dim endRow as Long
endRow = Sheets("Sheet2").Range("C9")
[COLOR=#333333]Worksheets("Sheet1").Range("A2:[/COLOR][COLOR=#0000ff]A" & endRow[/COLOR][COLOR=#333333]).FillDown[/COLOR]
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,213,506
Messages
6,114,024
Members
448,543
Latest member
MartinLarkin

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