+ Reply to Thread
Results 1 to 10 of 10

Userform - Address Book

  1. #1
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Userform - Address Book

    Hi

    I want to create a address book with certain details (see attached) in excel.
    Is there a way to create a "userform" for
    - easy data entry ie all required fields are displayed in a "form format" instead of the usual excel column. After data entry, the data are auto-populated in the respective excel columns

    - search and view search result. eg if a certain phone number or name is entered into the form, other details will be auto-populated into the form.

    Thank you for assisting.

    Nancy
    Attached Files Attached Files

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Userform - Address Book

    Excel Data Entry Form

    Create an Excel User Form
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform - Address Book

    Hi Palmetto

    I followed your link to create an Data Entry Form and Excel User Fom.

    The "Data Entry Form" works fine.

    However, the "Excel User Form" can't work. I created a "add contact" button but there's an error.

    Please help.

    Regards
    Nancy
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-17-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Userform - Address Book

    Hello Nancy,

    For the code to show the user form, you only have to write the name of the form plus .show

    In your case the macro for the button would be similar to below:
    Please Login or Register  to view this content.
    For some reason I could not edit the code for the rectangle you had so I added my own one.

    Hope this helped

    Orla
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform - Address Book

    Hi

    The attached can't work; that is when I entered all the data and click "Add", there is a error message.

    Regards Nancy

  6. #6
    Registered User
    Join Date
    12-17-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Userform - Address Book

    Hello Nancy,

    I had a look at the code and the text boxes are not named correctly. I was going to send on file but this is the comment I made in it
    Please Login or Register  to view this content.
    Unfortunately when I changed them another error came up and I do not know how to solve the error.

    Sorry I could not help more.

    Regards,
    Orla

  7. #7
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform - Address Book

    Hi

    Thanks Orla.

    Can anyone in the forum help me with my "wrong code" and workbook.

    Regards

    Nancy

  8. #8
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Userform - Address Book

    Address Book.xlsm
    Quote Originally Posted by Palmetto View Post
    Hi

    I tried but cannot get the correct code.

    Kindly help.

    Nancy

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

    Re: Userform - Address Book

    The code is referencing comboboxes in several instances instead of the textboxes on the form.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Userform - Address Book

    Try this one.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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