+ Reply to Thread
Results 1 to 9 of 9

Macro To Autofill Numbers Increasing

  1. #1
    Registered User
    Join Date
    05-06-2011
    Location
    US
    MS-Off Ver
    Excel 2000
    Posts
    3

    Macro To Autofill Numbers Increasing

    Hello,

    I am using Excel 2000. I have only learned about using it somewhat in the last week. I have no knowledge of VBA programming except to open the VBA editor and copy into it.

    I need to autofill a series of numbers that will increase, starting with a different number each time and ranging from column B to V (like entering 171 and having it go across autofilling ending up with number 191.

    I have searched internet and this forum extensively and the closest thing I have found is:

    Sub ExtendDates()

    Selection.AutoFill Destination:=ActiveCell.Range("A1:V1"), Type:= _
    xlFillDefault

    End Sub

    I am not dealing with dates just numbers but this is what this example had in it.

    If I enter in a number in Column B this will copy it across to Column V. But I need it to increase one number in each column for 21 columns. I need a macro like this because I have to do this around 400 times.

    Thanks.
    Last edited by sperryruss; 05-07-2011 at 08:59 PM. Reason: Solved

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Macro To Autofill Numbers Increasing

    Hi,

    Welcome to the forum.

    Try this

    Please Login or Register  to view this content.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Registered User
    Join Date
    05-06-2011
    Location
    US
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Macro To Autofill Numbers Increasing

    Thanks for your response Charles. That code says ExtendDate but I only want to Extend numbers. Even though it says date when I put in a number the first time and ran it, it worked. But it will not work again I restarted excel and repasted the code in the editor but it will not run.

    The numbers I will enter will change like I might start at 171 one time and next time start at 1468 and needs to increasd no matter what number I put in and no matter what row I put it in.

    Any more ideas?

    Thanks

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Macro To Autofill Numbers Increasing

    Hi,

    Check the attachment.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-06-2011
    Location
    US
    MS-Off Ver
    Excel 2000
    Posts
    3

    Re: Macro To Autofill Numbers Increasing

    Charles,

    That is just what I needed. Thank you very much for going into all the detail and putting it on the Excel sheet. It works like I need it to.

    I only started learning Excel in the last week to help a business friend of mine who does not know very much about computers. I have learned a lot about different programs and computers during the last years but never had a need for Excel. This experience has shown me that it may come in handy for a lot of things in the future.

    Sperry

  6. #6
    Registered User
    Join Date
    02-25-2012
    Location
    ghaziabaad,india
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Macro To Autofill Numbers Increasing

    Hiii,
    I need a macro through which i can auto fill a column by 1,2,3.....(in increasing order) till the last row with reference to data in next column. For this i am attaching a excel sheet in which i need to auto-fill the first column w.r.t till the data fill in 2nd column.



    Thanx
    Attached Files Attached Files
    Last edited by Ravi99522; 02-25-2012 at 09:52 AM.

  7. #7
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Macro To Autofill Numbers Increasing

    Ravi99522,

    Welcome to the forum.
    However, you need to start your own thread.

  8. #8
    Registered User
    Join Date
    02-25-2012
    Location
    ghaziabaad,india
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Macro To Autofill Numbers Increasing

    Hi Charles,

    How to start a new thread ???

  9. #9
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Macro To Autofill Numbers Increasing

    Look at the Left side of the Question page near the bottom you will see "Start New Thread".

+ 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