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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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