+ Reply to Thread
Results 1 to 6 of 6

Run macro until row is empty

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    32

    Run macro until row is empty

    Hi.

    Need a macro that will run until next row is empty.
    two inputs are needed...if the two inputs are present in the databse, then it will show the other details

    my idea is using VLOOKUP

    Please Login or Register  to view this content.
    Please see attachment

    TIA
    Attached Files Attached Files
    Last edited by smalltime; 12-07-2009 at 11:55 PM. Reason: solved - thanks dave

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Help - Run macro until row is empty

    You will have to make sure the entries are the same as the items in the data Sheet.
    I used an example of DataValidation to Make sure the Items to find were the same as the items in the Data sheet.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-06-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Help - Run macro until row is empty

    davesexcel

    thanks..it works perfectly

    about data validation..my file already has one.


    thanks

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Help - Run macro until row is empty

    Quote Originally Posted by smalltime View Post
    davesexcel

    thanks..it works perfectly

    about data validation..my file already has one.


    thanks
    I did a double check, your example had "Pencil" instead of "pencil",
    I checked for data Validation the worksheet did not have one.

  5. #5
    Registered User
    Join Date
    08-06-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Help - Run macro until row is empty

    @davesexcel

    i mean my original file has data validation already.
    the attached file is just a test data..sorry for confusion

    i have another question, it is possible to copy the 'expected results sheet' multiple times?
    see edited attached file

    thanks
    Attached Files Attached Files

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Help - Run macro until row is empty

    i suppose this code would work, when running it XL will assume it is for the active worksheet.
    Please Login or Register  to view this content.

+ 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