+ Reply to Thread
Results 1 to 3 of 3

find next and then update on Excel form - VBA

  1. #1
    Registered User
    Join Date
    04-14-2011
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    39

    find next and then update on Excel form - VBA

    Hi there,

    I have an Excel form that allows users to input data. I'm currently testing out the find and update functionality, and I'm stuck. please see the attached

    Basically, here is what happens:

    1) user will find a patient name by putting in the second textbox.
    2) excel will find only in the 2nd column of "sheet1" for the patient.
    3) there will be multiple entries for the same guy. So, when multiple entries are found, users can keep on clicking the "find" button until the right -record is found. (i want all the other 4 textboxes to auto-populate what's in the worksheet for that guy.
    4) when the right record is found, users will then modify the record then click on "update" to finish updating record.
    5) the update button will update records in the worksheet(sheet1)

    right now, the code does the find, but not findnext when multiple entries are expected.

    Please Login or Register  to view this content.
    any help is appreciated
    Attached Files Attached Files
    Last edited by lifeseeker1019; 02-12-2014 at 05:50 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: find next and then update on Excel form - VBA

    Hi lifeseeker (hope you keep finding it_)

    I think you just need a fndrng.Select added like below??

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-14-2011
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: find next and then update on Excel form - VBA

    thank you! it works!

+ 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. Update excel file using a form or other method
    By kris26 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-08-2013, 11:02 PM
  2. Update Excel file from User Form
    By doglover in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2013, 03:13 AM
  3. Options to update excel row through a user form
    By sabarim123 in forum Excel General
    Replies: 2
    Last Post: 07-26-2011, 03:18 PM
  4. Filling form fields via worksheet dropdowns, user update via form, change form color
    By Demosthenes&Locke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2010, 08:58 AM
  5. Update Adobe form from Excel
    By JT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2005, 05:00 PM

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