+ Reply to Thread
Results 1 to 12 of 12

Edit existing data in the sheet from Userform

  1. #1
    Registered User
    Join Date
    04-12-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    7

    Edit existing data in the sheet from Userform

    The Userform allows to edit the existing data already in the sheet"MLT".
    When the item code (ERP LN) is selected, data related to that particular code populated in the respective field. However, when I edit the data in the field and save it, the new data doesn't gets updated (except the one in column B)

    Attached the code below & file
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by vignesh_805; 04-24-2020 at 03:02 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Edit existing data in the sheet from Userform

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-12-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    7

    Re: Edit existing data in the sheet from Userform

    I went through all the rules and I will take care of it in the coming posts.

    Thank you and Sorry !

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Edit existing data in the sheet from Userform

    Give the attached a try, form does 'add new' / 'update' / 'remove'
    'Clear' form to activate ready for additions, press 'Add' after filling in details.
    The code is compact by virtue of using Table structure.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Edit existing data in the sheet from Userform

    or if you want to keep your setup.
    Please Login or Register  to view this content.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    04-12-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    7

    Re: Edit existing data in the sheet from Userform

    Very helpful and a different approach to the form. Thanks
    Last edited by vignesh_805; 04-24-2020 at 03:00 AM.

  7. #7
    Registered User
    Join Date
    04-12-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    7

    Re: Edit existing data in the sheet from Userform

    Solved my case . Thank you Sir !

  8. #8
    Registered User
    Join Date
    04-12-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    7

    Re: Edit existing data in the sheet from Userform

    Quote Originally Posted by dotchiejack View Post
    or if you want to keep your setup.
    Please Login or Register  to view this content.

    THis code solved my case

  9. #9
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Edit existing data in the sheet from Userform

    Thanks for the feedback and the rep.

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Edit existing data in the sheet from Userform

    I only submitted the alternative because I find it baffling why anyone would do a search when the answer lies in the combobox listindex

  11. #11
    Registered User
    Join Date
    04-12-2020
    Location
    India
    MS-Off Ver
    2013
    Posts
    7

    Re: Edit existing data in the sheet from Userform

    Quote Originally Posted by dotchiejack View Post
    or if you want to keep your setup.
    Please Login or Register  to view this content.
    Hi, unfortunately if NA_addselect = True condition is not adding data to the sheet.

  12. #12
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Edit existing data in the sheet from Userform

    Hi, unfortunately if NA_addselect = True condition is not adding data to the sheet.
    yes it does.
    The code searches the last used row +1 in the worksheet, In your example you have a value in cell CTN485, When you add new it is added to row 486

+ 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. Edit existing excel records using UserForm
    By bluesky63 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-28-2014, 03:18 AM
  2. Userform Buttons to Delete or Edit existing data
    By rach3lmclark in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2013, 11:53 AM
  3. How to Edit Existing data of excel sheet
    By ashfaquebwd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2013, 09:24 AM
  4. Using VBA Userform to edit/amend existing data
    By Raporter65 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 03:41 PM
  5. Edit existing data in spreadsheet through userform textbox
    By MIFF3436 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-04-2012, 12:17 PM
  6. Edit existing information in Userform
    By AZ1431 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2012, 07:28 AM
  7. 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
  8. 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