+ Reply to Thread
Results 1 to 6 of 6

Validation Source

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

    Validation Source

    Not sure if this can be done, still a rookie at this stuff.Everything works but can something be wrote into code too change list source?
    Attached Files Attached Files
    Last edited by zplugger; 04-02-2009 at 06:57 AM.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Validation Source

    see the attached file.
    you can hide cels J1 and J2.
    they are used to store reference to either "Dog" or "Cat" lists, depending on which button you click.
    hope it helps.
    modytrane
    Attached Files Attached Files

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

    Re: Validation Source

    Thank You Very much, this will work perfect.

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

    Re: Validation Source

    Sometimes I think I'm too old for this stuff, today Modytrane fixed my problem for me and I messed it up trying too understand how he did it. Not sure what going on with J1&J2. For the life of me I'm lost. All I did was rename a colume on sheet 2 I think. I just need too know how this works and not having anybody do my work. I'm retired and trying too learn something new. This is a great site for help and examples. Here is my bad example, maybe someone will know whats wrong. The one modytrane did is perfect.
    Thanks
    Attached Files Attached Files

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Validation Source

    Hello zplugger,

    I rewrote your command button routines to change the validation source range. All the changes here have been made to the attached workbook. I deleted 2 ranges and added 2 new ranges: Cats and Dogs. Cell "C11" is now the only cell with a formula. The formula only does a Vlookup in columns "A" and "B". Here is the code for the command buttons...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

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

    Re: Validation Source

    Thanks Leith, I have been saved again by another expert.

+ 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