+ Reply to Thread
Results 1 to 10 of 10

Data entry to loop to next row

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    10

    Data entry to loop to next row

    Hello all,

    so I have a table to enter data, seven columns... I have wrote a command button with a inputbox code.

    so basicly what I do is.. I click the command button and it asks me to fill the data from cell A2 to G2.

    what I need is that after I fill data on G2, I need to repeat the whole process on the next row which means from A3 to G3 and so on.... in other words I need the code to reach column G then go back to column A but in the next row.

    here is what I have as a code:


    Please Login or Register  to view this content.

    P.S im also attaching the worksheet

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Data entry to loop to next row

    try this code :


    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Data entry to loop to next row

    for 10 rows
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  4. #4
    Registered User
    Join Date
    01-09-2014
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Data entry to loop to next row

    Quote Originally Posted by patel45 View Post
    for 10 rows
    Please Login or Register  to view this content.


    This one worked perfect and I thank you for your help. but now I rememberd 2 things:

    first I need this process to continue not only for 10 rows

    second I need a way to exist the process when I need to. lets say that I am entering data and I want to exist the excel sheet, how can I do that? the command button will keep asking me to enter data.

    one more thing how can I change the code so it will start in the next row. lets say i entered 4 rows today then tomorrow I want to enter another rows so I want it when I click the command button to start in the next row. NOT to over write the before ones.


    Thanks again for the help

  5. #5
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Data entry to loop to next row

    Have you considered using a data form.

    Search the help files for data form to learn how to create and use one.
    Click * below if this answer helped

  6. #6
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Data entry to loop to next row

    Quote Originally Posted by m.nimri View Post
    T
    first I need this process to continue not only for 10 rows
    How do you stop the loop ?
    second I need a way to exist the process when I need to. lets say that I am entering data and I want to exist the excel sheet, how can I do that? the command button will keep asking me to enter data.
    I did not understand

  7. #7
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Data entry to loop to next row

    Hi -

    Try this one.
    Please Login or Register  to view this content.
    event

  8. #8
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Data entry to loop to next row

    very good gode, but ther'is a double End(xlUp) need this change


    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Data entry to loop to next row

    Quote Originally Posted by patel45 View Post
    very good gode, but ther'is a double End(xlUp) need this change


    Please Login or Register  to view this content.
    it is intentional, try it with the file provided.see the opp has a tables

    event

  10. #10
    Registered User
    Join Date
    01-09-2014
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Data entry to loop to next row

    GREAT Thank you so much. its perfect.

    Quote Originally Posted by event21 View Post
    Hi -

    Try this one.
    Please Login or Register  to view this content.
    event

+ 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. data entry to loop to next row
    By m.nimri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 02:28 PM
  2. Help on duplicate password entry loop to retry
    By jhamer-arthrex in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2013, 01:20 PM
  3. Do Loop/Function/VB/Macro to automate system description ID entry
    By ShagNasty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2012, 04:35 PM
  4. Vba for move data & clear entry screen for entry new data..
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-27-2012, 09:19 PM
  5. Replies: 0
    Last Post: 10-06-2011, 07:03 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