+ Reply to Thread
Results 1 to 7 of 7

Auto populate adjacent cells based on specific dropdown selection

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Auto populate adjacent cells based on specific dropdown selection

    Hello,

    The issue I'm trying to resolve involves how to autopopulate adjacent cells with certain text if a certain item is selected from a dropdown menu in another column. Obviously this can easily be done with formulas and whatnot, but there is a catch that I cannot seem to work around. In the cell with the dropdown menu, there are 5 selections to choose from. For one of the selections, titled "No Current Yr", I want several adjacent cells in the same row to auto populate with an asterisk (*). If any of the other four selections are chosen from the dropdown menu, I want to be able to enter data directly into the adjacent cells that would otherwise be populated with the asterisk.

    So for example, Q3 has a dropdown menu with the 5 options. If "No Current Yr" is selected from the dropdown menu, I want F3:I3,K3:N3, and P3 to autopopulate with the asterisk. For any of the other 4 selections from the dropdown in Q3, I want to be able to enter data manually into those cells. The same goes for Q4 autopopulating F4:I4,K4:N4, and P4 etc. etc. all the way down to row 92. That is, I want the selection in column Q for a given row to autopopulate the above referenced cells in its same row, for each row between 3 and 92.

    Is there any way to make this happen?

    Thank you!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Auto populate adjacent cells based on specific dropdown selection

    Try adding this to the worksheet's code

    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    12-30-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Auto populate adjacent cells based on specific dropdown selection

    This worked absolutely perfectly! Thanks so much for the help.

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Auto populate adjacent cells based on specific dropdown selection

    So I may have jumped the gun on this one... When I first tested the code, I did it in a worksheet that had no other code on it and it worked perfectly. Now I'm trying to place in into a worksheet that has other code in it already and it's not working. The target cells and ranges are all the same for this worksheet, but it doesn't seem to execute. Any thoughts?

  5. #5
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Auto populate adjacent cells based on specific dropdown selection

    What code do you have on the worksheet? Did you get any error?

  6. #6
    Registered User
    Join Date
    12-30-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Auto populate adjacent cells based on specific dropdown selection

    Hi millz,

    I literally just figured out the problem after working through it. I'm pretty well versed in Excel but quite new to VBA. It was a matter of putting the macros in the correct place so they weren't conflicting with one another. It's been a lot of learning on-the-go, but I suppose that's half the fun. Anyway, problem solved. Thanks again!

  7. #7
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Auto populate adjacent cells based on specific dropdown selection

    Alright then, good luck

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Auto populate dates of a month based on dropdown selection
    By tstruntz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 10:10 AM
  2. Replies: 3
    Last Post: 02-24-2011, 01:48 AM
  3. auto populate multiple cells based on a list selection
    By ikautzman in forum Excel General
    Replies: 3
    Last Post: 06-26-2009, 10:09 AM
  4. Auto-populate fields based on selection from dropdown?
    By Aswert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2009, 03:26 PM
  5. [SOLVED] Auto populate several cells based on a selection from drop down li
    By Sheldon in forum Excel General
    Replies: 3
    Last Post: 01-13-2006, 04:30 PM

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