• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macros to generate sequentially numbers with dynamic input and output

Code:
Sub FillIt()
Dim i As Long, j As Long

i = InputBox("Enter initial")
j = InputBox("Ticket number")

    With Sheets("Sheet1").Range("a1")
        .Value = i
        .AutoFill .Resize(j - I + 1, 1), xlFillSeries
    End With

End Sub


dear all, I need help to include dynamic range in above macro.

In my sheet1 in cells D2 having start no 1 and E2 having end no 10. Then next range D3 having start no 21 and E3 having end no 30 till down for both columns D25 to E25. I need output of each range cell in columns start from AA, AB, AC and so on till all range end.
Need modification in above code to include range from two columns and output of each range in separate columns.

Thank you very much to all in advance


▬▬▬▬▬▬▬▬▬ Mod edit : thread moved to appropriate forum !
 
Back
Top