+ Reply to Thread
Results 1 to 16 of 16

Edit existing excel records using UserForm

  1. #1
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Edit existing excel records using UserForm

    Hi All Gurus

    I need help to create a simple edit VBA script to allow user to search and edit existing excel row records. I had created the add record button with reference to some of the site in the web.

    See my attached sample

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    on what basis do you want to edit the master record?

  3. #3
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Edit existing excel records using UserForm

    Hi mahaveersomani,

    due to staff movement from one floor to another. Data entry clerk need to update by searching using Ctrl F and edit directly to the row, it is easy to make mistake. The more efficient way is use userform to search and edit. By the way the actual rows of this excel spreadsheet is 4000 over records. This is the interim data entry form before we migrate over to MS SQL AS. Thanks !

    PS :- if you can show me on the search and display script will be wonderful. Thanks !

  4. #4
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    check the attached file and then tell me if there is any problem.


    Thanks & REgards
    MAhaveer somani
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Edit existing excel records using UserForm

    Hi Mahaveer,

    that was superb fast, how about just search and view tab ? hope I am not taking much of your time .... Thanks !

  6. #6
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Edit existing excel records using UserForm

    Hi Mahaveer,

    Can the office location, space type, space sub-type and space status to use comboBox control (drop down) for user to select during editing ?

  7. #7
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    use the attached File

    User Name = User
    Password = Pass
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    check the attached file i have changed textboxes to comboboxes...

    Thanks & Regards
    CA MAhaveer Somani
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-25-2007
    Posts
    2

    Re: Edit existing excel records using UserForm

    Hi, Can I be cheeky, I have also checked out your sheet CA MAhaveer Somani, and think it is great. I am using a lot of these to develop my own Userform however need help.
    In the search, which works great, what code would I have to add to navigate up/down one record at a time, ie if I just wanted to scroll through the records. Thanks
    Paul

  10. #10
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    hey dbpaul

    Check the attached file.

    If it was useful to you then dont forget to hit * button

    Regards
    CA Mahaveer Somani
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    Thanks Bluesky63, nice to see you happy.

    Regards
    CA Mahaveer Somani

  12. #12
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Edit existing excel records using UserForm

    Hi mahaveer,

    Any idea why when we click on command button each time, the font size shrinks ? how to fix it ?


    Christopher

  13. #13
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Edit existing excel records using UserForm

    Hi machaveer,

    I modify the search to use textbox but somehow cannot input name in the search box

    can help to see what have I miss up in the VB ?

  14. #14
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Edit existing excel records using UserForm

    go to properties of textbox and make false the locked menu....

    and then tell me if there is any further problem.


    by the way you can use this attached sheet in which i have unlock the textbox...
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-20-2014
    Location
    wolverhapton
    MS-Off Ver
    Excel 2010
    Posts
    94

    Re: Edit existing excel records using UserForm

    hi mahaveersomani - I need exactly what you have produced for Bluesky- any chance you could look at my work book for me and help me out with this.
    I have created another editing user form which is userform 2? I need to use the Search URN box to find the record and then be able to edit the record and have the option to update the data or delete from the sheet.

    I do have date/times which I need to have the formats i.e DD/MM/YY, HH/MM/SS. thanks
    If you could help me out that would be great.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Edit existing excel records using UserForm

    Hi mahaveer

    Is there a command/script to take care Lower case and upper case for Name ? Current if I type Guat Hong, it will not return the result and need to type exactly the data format in the Cell, i.e. GUAT HONG

    How about wild card ? user just need to type in *David*, those records with XXX David XXX or DAVID XXX will return for selection to edit

    Thanks for your time.


    Christopher
    Attached Files Attached Files
    Christopher Yap

+ 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. Add/edit/delete records userform
    By kryt0n in forum Excel General
    Replies: 7
    Last Post: 09-10-2018, 11:49 AM
  2. VB coding for using excel userform to edit and overwrite an existing database
    By raseen20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2013, 10:35 AM
  3. Replies: 1
    Last Post: 03-26-2013, 10:09 AM
  4. Excel VBA Userform - Sets of data, View original, add new, edit existing
    By newzealdan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2011, 03:54 AM
  5. edit the existing userform
    By barishta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2009, 01:36 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