endlessboundless
New Member
- Joined
- Jan 27, 2011
- Messages
- 33
I have the following Macro and I would like it to also populate Jan, Feb, Mar... Dec (over and over again) under the C2 on the Actual and Budget pages. Can anyone please help?
Dim Rng As Range
Dim Ray As Variant
Dim Dn As Range
Set Rng = Range(Range("C17"), Range("C" & Rows.Count).End(xlUp))
For Each Dn In Rng
Ray = Ray & Application.Rept(Dn.Value & ",", 12)
Next Dn
Sheets("Actual").Range("C2").Resize(, Rng.Count * 12) = Split(Ray, ",")
Sheets("Budget").Range("C2").Resize(, Rng.Count * 12) = Split(Ray, ",")
TYIA!
Dim Rng As Range
Dim Ray As Variant
Dim Dn As Range
Set Rng = Range(Range("C17"), Range("C" & Rows.Count).End(xlUp))
For Each Dn In Rng
Ray = Ray & Application.Rept(Dn.Value & ",", 12)
Next Dn
Sheets("Actual").Range("C2").Resize(, Rng.Count * 12) = Split(Ray, ",")
Sheets("Budget").Range("C2").Resize(, Rng.Count * 12) = Split(Ray, ",")
TYIA!