+ Reply to Thread
Results 1 to 6 of 6

How to add new line of data without replacing the old data?

  1. #1
    Registered User
    Join Date
    04-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to add new line of data without replacing the old data?

    All,

    I am new to programming, so please be patient with me.

    I am trying to add new line of data by using UserForm. The current code I have allows me to add one new line of data, whenever another line of data is added, it overwrites the the previous data. What code do I add in to ensure data gets added and not overwritten?

    Here is my code

    Please Login or Register  to view this content.

    Thank you for your help!

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: How to add new line of data without replacing the old data?

    Hi yimingration,

    Welcome to the forum!!

    Try this (untested):

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to add new line of data without replacing the old data?

    Looks to me like you almost have it:

    Please Login or Register  to view this content.
    EDIT: Trebor has wings on his heels this evening ...
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: How to add new line of data without replacing the old data?

    Trebor has wings on his heels this evening
    That's funny - I thought the same about you shg

  5. #5
    Registered User
    Join Date
    04-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to add new line of data without replacing the old data?

    THANK YOU SO MUCH ALL!~!!!!! W00t

  6. #6
    Registered User
    Join Date
    04-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to add new line of data without replacing the old data?

    How do I insert data after line 346 on the sheet "database"

+ 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