troubleshooting Question

Fill series of sequential numbers in blocks of 2

Avatar of zack carter
zack carter asked on
VBAMicrosoft ExcelMicrosoft ApplicationsMicrosoft Office
4 Comments1 Solution175 ViewsLast Modified:
VBA fil down block of 2 identical sequential numbners in column B starting at row 2 until last row of data in column c.

I have searched high and low for a logical approach at  this and I cant seem to find it anywhere.

I need to be able to fill column B cell B2 downwards until last row of data in column C.


Example below:


1
1
2
2
3
3
4
4
5
5


so forth until the last row of data in column C.

I have managed to get to the point i can do it sequentially but not how i want it to work.

Any help aprciated:
Lst = Range("C" & Rows.count).End(xlUp).Row - 1
With Range("B2")
    .Value = "1"
    .AutoFill Destination:=Range("B2").Resize(Lst), Type:=xlFillSeries
End With
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros