+ Reply to Thread
Results 1 to 6 of 6

searching data using a userform

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Norfolk UK
    MS-Off Ver
    2007
    Posts
    222

    Smile searching data using a userform

    Hi Guys,

    I think a simple task, not used to many user forms in the past

    I am looking to enter a numeric value these are the green columns.

    it then needs to search the workbook for that number (Barcode Number)

    then if the cell to the right has a value, it needs to pull that number into the userform' if no number is next to it, then I manually write and post it the cell next to the one just found.......

    easy peasy (NOT)

    cheers in advance


    Stephen
    Attached Files Attached Files
    Last edited by stephen1000; 07-05-2009 at 04:57 AM.

  2. #2
    Registered User
    Join Date
    07-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: searching data using a userform

    Does this do the trick?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: searching data using a userform

    I guess I ought to provide some instructions:

    To open the form go to Tools > Macro > Macros > "DoForm"

    The first button is a "read" button - it looks up the invoice number corresponding to the barcode number, and puts it into the second text box.

    The second button is a "write" button - it takes whatever's in the second text box and writes it into the data.

    I haven't made it very error proof, secure or intuitive but after all, I'm not getting paid.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: searching data using a userform

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Norfolk UK
    MS-Off Ver
    2007
    Posts
    222

    Re: searching data using a userform

    Quote Originally Posted by Ancalagon12321 View Post
    I guess I ought to provide some instructions:

    To open the form go to Tools > Macro > Macros > "DoForm"

    The first button is a "read" button - it looks up the invoice number corresponding to the barcode number, and puts it into the second text box.

    The second button is a "write" button - it takes whatever's in the second text box and writes it into the data.

    I haven't made it very error proof, secure or intuitive but after all, I'm not getting paid.

    Hi Ancalagon,

    Thanks for that, its a start; just dicovered that all the numbers in green have formulas not values in,so it does not work unless i change cells to numeric values.

    I did organize this sheet, will need a bit of re-thinking.

    cheers for what you did

    stephen

  6. #6
    Registered User
    Join Date
    07-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: searching data using a userform

    Stephen: Find the line of code that uses "Find" and change it from this:

    Please Login or Register  to view this content.
    to this:

    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