+ Reply to Thread
Results 1 to 14 of 14

Macro Generate Numbers in Sequential Order

Hybrid View

  1. #1
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Macro Generate Numbers in Sequential Order

    Bump in such short time?
    Sub test()
        Dim ws As Worksheet, num As Long
        num = Abs(Application.InputBox("How many?", Type:=1))
        If num < 2 Then Exit Sub
        For Each ws In Worksheets
            With ws.Range("a" & Rows.Count).End(xlUp)
                .AutoFill .Resize(num + 1)
            End With
        Next
    End Sub

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2003, 2010
    Posts
    212

    Re: Macro Generate Numbers in Sequential Order

    Hi Jindon

    Thats! perfect and thanks for that....

    However, i don't want to generate number for all tab at the same time, if possible can also include the sheetname in the prompt to which i want to generate numbers?

    Also i want to protect the column A till the row the value got generated.

    Best
    Rem0

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1