+ Reply to Thread
Results 1 to 5 of 5

VBA Code to Find and Display Records

  1. #1
    Registered User
    Join Date
    02-01-2010
    Location
    bostob
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exclamation VBA Code to Find and Display Records

    I am very new to VBA. I have created a userform in excel. The idea is the excel worksheet will be prepopulated with data. upon opening excel, the user is prompted to enter the account number, via input box. I have all of this so far. My problem is I have no idea how to once the account number is inputed to search the spreadsheet for the account number and have it populate my userform so it may be updated. Please any help would be so very much appreciated. I have attached file I am working on for your assistance.
    Attached Files Attached Files
    Last edited by Kris12; 02-01-2010 at 02:09 PM. Reason: Incorrect title

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: VBA Code to Find and Display Records

    Hi Kris12

    Try something like....
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    02-01-2010
    Location
    bostob
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA Code to Find and Display Records

    Hi Pike -
    you are amazing! it works where i can search and pull up the data to the spreadsheet. I am going to continue to work at having the userform be the item that is pulled up and displayed!!! Thank you so much, as this will help !

  4. #4
    Registered User
    Join Date
    12-17-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: VBA Code to Find and Display Records

    I am new to VBA. I have created a userform in excel, and would like to add a find code using the vendor #, so when I press find and put the vendor # if I have that vendor I want his data to appeare in that form so I can update it and if not a message appeare says not found. I have found a similar case here but when I tryed it It didn't work.
    Also I want to write a code for the vendor # text and for the Vendor name to prevent any duplicate while entering data.If any one can help it would be so much appreciated. I have attached the file I am working on for your assistance.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-27-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: VBA Code to Find and Display Records

    Quote Originally Posted by pike View Post
    Hi Kris12

    Try something like....
    Please Login or Register  to view this content.
    Hello,
    I used the code But I am unable to pull more than one Record ( actually want to pull all the duplicate records as well)

+ 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