+ Reply to Thread
Results 1 to 3 of 3

Advice using a Userform to Update rows

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    London england
    MS-Off Ver
    Excel 2003
    Posts
    14

    Advice using a Userform to Update rows

    I have a spreadsheet which uses a Userform to add new rows of data and it is working fine. Basically the row added is a work request which is view by the team and either accepted or rejected and agreed dates accepted.

    What I would like advice on.
    Is it possible for me to use the same form to update a row? This is how I envisage how it could work

    The user selects the row to be updated and then initiate the Form which now has two new buttons Load and Update

    The load button would load the selected rows data into the form enabling the user to change/update fields as required then the update button would update the row.

    Is this feasible? Or is there a better way of doing it?

    If anybody has any VBA code which I could amend to achieve the above, I would be most grateful

    Regards

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Advice using a Userform to Update rows

    The answer is Yes, although you might want to consider a built-in feature of Excel to do this. Here is a tutorial on the Data Form for 2003.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Advice using a Userform to Update rows

    Alternatively it would be better if you could upload a workbook with your userform and sample data of what you are doing. Its always easier to write code for a set example rather than guess.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

+ 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. Need advice, code problem - Userform
    By jsneak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2013, 07:18 AM
  2. Update Rows in Database based on Combobox selected item on Userform. Problem .
    By jmarriott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2013, 01:08 PM
  3. Replies: 1
    Last Post: 03-31-2011, 10:23 PM
  4. Excel userform on a website - Advice required
    By PRodgers in forum Excel General
    Replies: 1
    Last Post: 08-07-2009, 09:54 AM
  5. Userform Advice/Help
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-17-2005, 10:06 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