+ Reply to Thread
Results 1 to 4 of 4

Sequential numbering and Rows

  1. #1
    Registered User
    Join Date
    06-18-2008
    Posts
    2

    Sequential numbering and Rows

    Hello
    I am pretty new to working with Excell but I am learning. :D
    I have been lurking/searching and trying to find the solution to my problem.
    It consists of basically having the A column continue numbering when I add or delete a row in my sheet I have been working on.

    see attached:

    If I need to add/delete a line I need it to continue the correct numbering corresponding to the rows.
    I dont know how to get it to work if possible?

    I appreciate any help.
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Paste this macro into the Sheet1 tab in the VBA editor (ALT F11)

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello mkarylyle,

    This macro will keep track of the rows as they change. The macro stores the row internally so it can't be corrupted accidentally by the user. Only rows within the table are numbered and the table size is determined automatically. Sheet1 will trigger the macro anytime a cell is changed. When that happens it calls the main macro to check that the rows haven't changed. I have added both of these to the attached workbook.

    Worksheet Change Event Code
    Please Login or Register  to view this content.
    Main Macro Code
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-18-2008
    Posts
    2

    Thumbs up

    Thank you very much!

    I have alot to learn

+ 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