+ Reply to Thread
Results 1 to 14 of 14

Address book

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Address book

    Is they a better way? When I put the name in address fill by itself?

    Thanks Z
    Attached Files Attached Files
    Last edited by zplugger; 11-28-2011 at 09:48 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Can I make this address book work

    Use VLOOKUP.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Can I make this address book work

    seems to work as it is,what do you mean?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    11-23-2011
    Location
    Hurst, Tx
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Can I make this address book work

    misposted on thread
    Last edited by cebubb; 11-27-2011 at 06:50 PM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Can I make this address book work

    Sorry, couldn't see the code (using iPad).

    I don't really understand why you're using VBA at all.

    You might as well just put the formulae in place and protect the sheet.

    Regards, TMS

  6. #6
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Can I make this address book work

    I want to get rid of the button, have the address fill in after I pick a name.

  7. #7
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Can I make this address book work

    Thanks Guys Works Perfect, I'm just a little slow. LOL

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Can I make this address book work

    Cell C14: =VLOOKUP($C$13,'Address Book'!A:C,ROWS($C$13:$C14),FALSE)

    and copy down.

    In code:

    Please Login or Register  to view this content.


    Regards

  9. #9
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Address book

    vlookup work great, but what if I want to type in a name and address without validation? If I type in a address I lose my formula. Is it possible to type in a address, I can type it in now but can't clear all the boxes and lose my formula.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Address book

    thats probaby why it was using those buttons to run the code so you could do just that.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Address book

    Have a look at the attached workbook (yours, updated)

    It takes manual input in cell C12 or validated input in cell C13. If you put something in C12, it copies it to C13, clears C12 and selects C14 for you to type an address. If you select something from the drop down in C13, it clears C12 and puts the formulae in C14 and C15.

    You need to lose the merged cells ... never, please, never use merged cells.


    Please Login or Register  to view this content.

    Regards
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Address book

    Thanks TM, I will try and make this work, the only problem
    I have is when I clear sheet I lost Validation?

  13. #13
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Address book

    Found the problem TM, Thanks for your time helping me. I changed CommandButton2

    Range("C13:H15").Clear to
    Range("C13:H15"). Clear Contents

    Thanks to All who helped
    Z

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Address book

    Ah, my fault. I think I changed it when I was testing.

    I trust it does what you were looking for.


    Regards, TMS

+ 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