+ Reply to Thread
Results 1 to 5 of 5

Add, search and edit using a user form

Hybrid View

  1. #1
    Registered User
    Join Date
    06-05-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Add, search and edit using a user form

    Hi All,
    I have a workbook that i would like to automate using a user form. The workbook consistests of 5 sheets and each sheet having 8 coloumns of data.

    Basically i would like to develop a user form that would:
    * Have a dropdown menu to select which sheet to add the data to, once selected and 'submit' button is clicked the info would be added
    * Ability to search for a keyword' and then bring the line of data up in the user form so it can be edited

    I have attached a copy of what i have started with if it is any assistance.


    Book1 - Copy.xlsThanks

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Add, search and edit using a user form

    Here's an example userform with code that you may find useful.
    Edit Records in Excel Worksheet Data Entry Form

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Add, search and edit using a user form

    You will need to add the Combo box into form then have mechanism to load row

         
        cboSheet.RowSource = "Data!A1:A5"
    i created a seperate sheet called Data to load the new combo box

    then to direct where the information goes
    under submit command

        Sheets(cboSheet.Text).Select
        lRow = ActiveSheet.UsedRange.Rows.Count
        
        Range("A" & lRow + 1).Select
    this will use the next available row into sheet you have selected
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Add, search and edit using a user form

    Hi, clint182,

    have you considered using Excel built-in DataMask (which isnīt available on the ribbon but maybe activated through the options)? Will work on any sheet where it is called and may recognise the data/table without programming...

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Registered User
    Join Date
    06-05-2011
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Add, search and edit using a user form

    Thanks all!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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