+ Reply to Thread
Results 1 to 4 of 4

Search,Edit,Add,Delete userform

  1. #1
    Registered User
    Join Date
    07-10-2018
    Location
    Uk
    MS-Off Ver
    MS365 Version 2102
    Posts
    86

    Search,Edit,Add,Delete userform

    Hello,

    I am trying to design a user form using a sample workbook I found on the forum to Search,Edit,Add,Delete a table within a worksheet.

    The table is called table5 and has 9 columns

    I've modified the code however I'm getting 'Subscript ou of range' error

    Please Login or Register  to view this content.
    Can anyone help?
    Thanks
    Last edited by Ashleytaylor1702; 12-16-2020 at 06:29 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,474

    Re: Search,Edit,Add,Delete userform

    Add NEW entry to Database:

    Please Login or Register  to view this content.

    FIND an existing entry and upload data to User Form, assuming Database is Sheet 1:

    Please Login or Register  to view this content.
    UPDATE the Database record after changing something in the User Form:

    Please Login or Register  to view this content.
    Hope this helps

    Ochimus
    Last edited by Ochimus; 12-15-2020 at 01:07 PM.

  3. #3
    Registered User
    Join Date
    07-10-2018
    Location
    Uk
    MS-Off Ver
    MS365 Version 2102
    Posts
    86
    Quote Originally Posted by Ochimus View Post
    Add NEW entry to Database:

    Please Login or Register  to view this content.

    FIND an existing entry and upload data to User Form, assuming Database is Sheet 1:

    Please Login or Register  to view this content.
    UPDATE the Database record after changing something in the User Form:

    Please Login or Register  to view this content.
    Hope this helps

    Ochimus

    Thanks that’s great!

    Any idea on the delete function?

  4. #4
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365 Version 2501 64-bit
    Posts
    1,474

    Re: Search,Edit,Add,Delete userform

    Ashley,

    Glad it helped, although you don't need to repost the submission.

    A DELETE macro depends on the structure of your worksheet.

    Assuming your data is in a Table, create a dummy entry, then select VIEW and RECORD MACRO and record how you delete the Table row.

    You can then replicate the "FIND" Macro up to the point where it copies data into the User Form, then add the code you have just recorded that deletes it.

    Ochimus



    Ochimus

+ 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. [SOLVED] UserForm to search, edit, add and delete data
    By Kinjal Doshi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-02-2023, 04:40 PM
  2. Search Edit & Update using the Userform
    By Chrisb812 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-10-2020, 03:52 PM
  3. USERFORM : Search and edit data in userform
    By mohit.kumar9094 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2018, 07:50 AM
  4. [SOLVED] Edit, Delete, Search
    By Natee123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2014, 06:29 AM
  5. Userform for search, edit, change and delete
    By delizoki66 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-24-2013, 01:07 AM
  6. Add,Search,Edit,Delete via Useform
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-08-2013, 11:05 AM
  7. [SOLVED] Userform Add, Edit, Delete
    By jonjmortimer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-28-2012, 08:59 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