+ Reply to Thread
Results 1 to 5 of 5

Data not adding to the next row

  1. #1
    Registered User
    Join Date
    10-13-2020
    Location
    Ohio, USA
    MS-Off Ver
    2013
    Posts
    6

    Post Data not adding to the next row

    Hello everyone,
    I am looking for some help in adding the data to row tow and consecutively adding the data to the next row and so on. But my code only add the data on the header row(1st row) and doesn't add to the next row but will replace the previously added to the 1st row if new data is added. Could someone help me fix this issue please? I have pasted my code here and images on the userform and issues. I was not able to upload my excel file and if any tip to how to upload it please let me know.

    Thank you!

    Best,

    Hyacinthe Badiane


    Please Login or Register  to view this content.
    End Sub

    Useform.PNG

    data adding to 1st row only.PNG

    sheets header.PNG
    Attached Files Attached Files
    Last edited by hybadtouba; 10-27-2020 at 11:50 AM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Data not adding to the next row

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Registered User
    Join Date
    10-13-2020
    Location
    Ohio, USA
    MS-Off Ver
    2013
    Posts
    6

    Re: Data not adding to the next row

    Thank you very much for pointing out the mistake. I just corrected it and save the changes.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Data not adding to the next row

    I have made alterations to your code as attached.
    You had not searched for the last row.
    Also in all the sheets there was/is spurious data around row 4000 ???
    The lastrow counter now just looks at column A.
    I have only cleared the first sheet, you will have to clear the others.
    Also you have a column formatted % this puts a column of data in place - remove the formatting
    If you are creating a pseudo database refrain from any entry other than through code.
    As you progress I would urge you to explore using tables - far more self maintaining and easier to manipulate data.
    Also consider populating your comboboxes from arrays via separate tables on a validation sheet.
    This makes the comboboxes far easier to expand rather than constantly altering the hard coded additem.
    Any further queries post back on this site.
    torachan

    a couple more points.
    I have iterated out your duplicate checking code - it was not working - you need to look again as how you want to check.
    Also the relationship of combobox data does not seem to align with the subject headings on the sheet - cell references need looking at.
    Attached Files Attached Files
    Last edited by torachan; 10-27-2020 at 01:01 PM.

  5. #5
    Registered User
    Join Date
    10-13-2020
    Location
    Ohio, USA
    MS-Off Ver
    2013
    Posts
    6

    Re: Data not adding to the next row

    Thank so much! I can't thank you enough for the help. my forms work now and i am ready to lunch them. Thank you indefinitely, you are a life saver!
    Have a wonderful day and Be blessed!

    best,

    Hyacinthe Badiane

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 07-16-2016, 10:53 PM
  2. Replies: 11
    Last Post: 08-13-2015, 08:12 AM
  3. Replies: 2
    Last Post: 10-23-2013, 09:32 AM
  4. [SOLVED] adding target lines into graphs without adding an extra column of data
    By ea223 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-16-2013, 12:32 PM
  5. Replies: 2
    Last Post: 04-06-2012, 02:42 PM
  6. Replies: 0
    Last Post: 12-05-2008, 01:32 PM

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