+ Reply to Thread
Results 1 to 6 of 6

UserForm to search, edit, add and delete data

  1. #1
    Registered User
    Join Date
    01-11-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    38

    UserForm to search, edit, add and delete data

    Hi All,

    I am new to UserForm and have absolutely no idea on how to go about!

    Attached is a Sample File - "Order Manager Sample"

    Data is in Sheet - Customer Pool
    I want the UserForm to Open in Sheet "1st Step", where I have given different buttons to Search/Add/Edit/Delete an ID from Customer Pool

    For Search - If I enter an ID in a text box in UserForm then it should search display all the related info of that ID in same UserForm
    For Edit/Add/Delete - If I enter and ID in a text box in UserForm, then it should do either Edit/Add/Delete the data of that ID from the Sheet Customer Pool.

    Do I make sense?!

    Please help me on this!

    Regards
    Kinjal
    Attached Files Attached Files

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

    Re: UserForm to search, edit, add and delete data

    I have attached a simple UserForm file which does the operations you are attempting i.e. Add/Edit/Delete/Update etc.
    What you have put on your sheet is not a 'UserForm' it is a form on a sheet.
    To give yourself a 'feel' look through the code, it is simple to follow and each event is easily identifiable.
    The sheet is just used as a flat sheet pseudo database, there are no on-sheet formula.
    torachan.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-11-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    38

    Re: UserForm to search, edit, add and delete data

    Hi Torachan,

    Thanks a lot!... this is exactly what I am looking for.
    I added 2 more columns and updated the code!

    Really, Thanks a ton!

    Regards,
    Kinjal
    Last edited by Kinjal Doshi; 07-27-2020 at 02:56 AM.

  4. #4
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Re: UserForm to search, edit, add and delete data

    Hi I came across this post and this is exactly what I need for what I am working on.


    My table has 14 columns and my column for the serial number is in the last column 14. I have looked and I have been unable to work out where I need to change the code so that it works, I have succesfully been able to added the extra txt boxes and they populate correctly.

    I was hopinh you might be able to point me to where I need to change it so when I place a number in the serial No textbox it looks at my column 14.

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

    Re: UserForm to search, edit, add and delete data

    @SKEEEETER, your query has just flagged up today, it is frowned upon to 'hi-jack' previous threads (see forum rules) it can lead to confusion.
    However, if you start your own thread and upload your workbook I will gladly assist you - I will keep a look out for your posting.
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  6. #6
    Registered User
    Join Date
    09-26-2015
    Location
    Australia
    MS-Off Ver
    Office 365
    Posts
    79

    Re: UserForm to search, edit, add and delete data

    Quote Originally Posted by torachan View Post
    @SKEEEETER, your query has just flagged up today, it is frowned upon to 'hi-jack' previous threads (see forum rules) it can lead to confusion.
    However, if you start your own thread and upload your workbook I will gladly assist you - I will keep a look out for your posting.
    I am sorry was not aware, just thought as you posted the answer you would see my response as was only a small change. But I am pleased with myself as I have worked it and is now working as I want. What I had only added to table, this is so much better. Cheers Skeeeeter

+ 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. Search and edit the data from multiple worksheets from userform
    By bujaber10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2019, 10:01 AM
  2. 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
  3. Edit/Delete data rows using VBA / Userform
    By BigPaulMc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2015, 05:17 PM
  4. Userform to search for data then edit corresponding cells
    By adotbz in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-29-2014, 12:26 PM
  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. [SOLVED] Search and edit data in a Userform
    By flashdisk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-11-2013, 08:27 AM
  7. Userform Search, Find and Edit Data
    By Chris270 in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 08-24-2011, 05:36 PM

Tags for this Thread

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