+ Reply to Thread
Results 1 to 7 of 7

how I can fixing this problem with this code

  1. #1
    Forum Contributor
    Join Date
    05-24-2021
    Location
    Palestine
    MS-Off Ver
    2019
    Posts
    280

    how I can fixing this problem with this code

    Hi
    I have data for many names . my code depends on what select the name from combobox . it should match with name in COL B if it's matched then insert a new row and fill data from userform but what I want before insert a new row I would search if there is empty row then should fill
    without insert a new row and if there is no empty row then should insert a new row and fill as the code works . the empty row begins from COL C: COL F .
    HTML Code: 
    any suggestion to fix that,please?
    Attached Files Attached Files
    Last edited by Alaa-A; 07-18-2021 at 12:58 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: how I can fixing this problem with this code

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    05-24-2021
    Location
    Palestine
    MS-Off Ver
    2019
    Posts
    280

    Re: how I can fixing this problem with this code

    here is the link
    https://www.mrexcel.com/board/thread.../#post-5723527

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: how I can fixing this problem with this code

    Assumes there is always going to be a match...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Forum Contributor
    Join Date
    05-24-2021
    Location
    Palestine
    MS-Off Ver
    2019
    Posts
    280

    Re: how I can fixing this problem with this code

    @sintek thanks for your help but the code doesn't work well . all of what I want just work in first name . it fill and insert row when there is no empty row , but the second name just fill and when insert a new row it moves under another name .
    as to third name it just fill and stop when it should insert a new row .
    I attach my file with the result gives me
    Attached Files Attached Files

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: how I can fixing this problem with this code

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-24-2021
    Location
    Palestine
    MS-Off Ver
    2019
    Posts
    280

    Re: how I can fixing this problem with this code

    sintek that's amazing ! thanks so much .you've solved my problem .
    last thing I tought to understand your code when insert a new column and I put the formula , but it gives error #N/A
    I put the formula in COL I because understand how should be in COL G
    I try amending this line from this
    HTML Code: 
    to this
    HTML Code: 
    End With
    but it doesn't succedds so far I hope to guide me how adjusting the code
    thanks again
    Attached Files Attached Files
    Last edited by Alaa-A; 07-22-2021 at 11:40 AM.

+ 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. Help with fixing match problem in code
    By CHRISTINEKENDALL93 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-22-2019, 10:50 AM
  2. Matching data between two sheets
    By MariPip in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-09-2014, 06:24 PM
  3. Need HELP fixing this code
    By Dewbo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2014, 09:16 AM
  4. [SOLVED] Fixing the VBA code
    By brownie4321 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2012, 09:35 AM
  5. help fixing a calculation problem
    By barrfly in forum Excel General
    Replies: 3
    Last Post: 11-04-2005, 12:10 PM
  6. fixing problem with my tab
    By Zane in forum Excel General
    Replies: 2
    Last Post: 08-06-2005, 03:05 PM
  7. fixing code
    By timmy64 - ExcelForums.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2005, 04:48 AM

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