+ Reply to Thread
Results 1 to 3 of 3

reset the values of a range

  1. #1
    Registered User
    Join Date
    12-10-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    10

    reset the values of a range

    I am looking for VB code to solve a quite simple problem:

    I have two cells with drop-down list, say C5 and C6. C6 is dependent on C5, which means when you change the value in C5, the list of options in C6 will change as well. The job I want the code to do is when I change C5, it should set C6 default value as " ", and the value in range D5:H5 as False. And when I change value in C6, C5 remains unchanged, the value in range D5:H5 should be all set as False too.

    The code I manged to come up with is shown below. But when I run it, excel got an error msg saying something like stack overflow. Not sure where goes wrong. Any help will be appreciated. Thanks.

    Please Login or Register  to view this content.
    Last edited by jiansong_yu; 05-06-2011 at 04:33 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: reset the values of a range

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-10-2010
    Location
    scotland
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: reset the values of a range

    thanks. I twisted your code a little bit and now it seems to be working. Thanks for your help.

+ 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