+ Reply to Thread
Results 1 to 6 of 6

Updating a list...

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Updating a list...

    Hi Guys,

    I currently using a portion of code (found here) to insert a record in a list.

    The list has numbering down 1 column, and i want that numbering to be updated after i insert that new record. For example, if i insert row 2.1 in the list 1, 2, 3, 4. I want the updated list to be 1, 2, 2.1, 3, 4.

    Thanks in advance for any help!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Updating a list...

    Please share your code and file with the expected output for better understanding.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Updating a list...

    Hi Sixsense,

    Here is an extract of the workbook. I've broken it down so its clear. Basically, when the user clicks 'Add', they fill out the 'Col x' details and enter a step number. I then want that record to be added to that list in the relevant position. This is all working fine.

    The part im struggling with, is after the user adds that record, i want the 'StepNo' in Col A to update all values, so that they are still in the correct order.

    I've added record 4 and 4.1 to show you an example of the problem. As you can see, adding 4 was fine. But then when i added 4.1 it inserted it above.

    Hopefully this explains it a bit better.

    And thanks for the swift response!

    Here is the code behind the 'Add' button.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Updating a list...

    Anyone able to help?

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Updating a list...

    Please Login or Register  to view this content.
    Last edited by protonLeah; 01-18-2013 at 05:03 PM. Reason: deleted workbook
    Ben Van Johnson

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Updating a list...

    I think this one might do it:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by protonLeah; 01-18-2013 at 05:01 PM.

+ 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