+ Reply to Thread
Results 1 to 6 of 6

The VBA code to auto-clear dependent drop down selection when parent cell change.

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Post The VBA code to auto-clear dependent drop down selection when parent cell change.

    Hello,

    I need help. I have a spreadsheet to capture employees information. In column F I have a drop down list of counties and in column G I have a drop down list of buildings dependent upon what you select in the county column. I was able to use the VBA code presented to auto-clear my dependent cell G whenever F was cleared, but the problem is when I go to the next row after making my selections when select another entry from the drop down box in F, it clears out all the previous G selections I made. I'm new to this VBA codes and macros. Please help.

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: The VBA code to auto-clear dependent drop down selection when parent cell change.

    is there a chance that you could attach a dummy file with the explained scenario? Thanks
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Post Re: The VBA code to auto-clear dependent drop down selection when parent cell change.

    Thanks for the response. Here is a copy of the file. If you notice I've made selections in column F and G if you go to the next row and try to continue adding to the list, it deletes all the previous entries in column G.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: The VBA code to auto-clear dependent drop down selection when parent cell change.

    Please swap your code from sheet "Reporting Form" with the following one:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: The VBA code to auto-clear dependent drop down selection when parent cell change.

    IT WORKED! Thank you so much!

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: The VBA code to auto-clear dependent drop down selection when parent cell change.

    @ Hotgirl

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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