+ Reply to Thread
Results 1 to 11 of 11

Initial default drop downs and dependent default drop downs

Hybrid View

  1. #1
    Registered User
    Join Date
    11-08-2016
    Location
    South Florida
    MS-Off Ver
    2016
    Posts
    6

    Re: Initial default drop downs and dependent default drop downs

    Quote Originally Posted by mehmetcik View Post
    Right Click on your sheet name at the bottom of excel and select view code.

    Paste this code in the window that opens and close the window.

    Your data validation for types needs amending too


    
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address <> "$B$1" Then Exit Sub
    
    Set Z = Sheets("data").Rows(1).Find(Target.Value, LookIn:=xlValues, Lookat:=xlWhole)
    
    T = Range(Cells(2, Z.Column), Cells(5, Z.Column)).Address
    
    Range("B3:B6").Value = Sheets("data").Range(T).Value
    
    End Sub
    Hi there!

    Thank you for being so helpful! I have a workbook I am working on and it's a doozy.

    I just noticed this doesn't show a selectable drop down list for the items if you make a type that has spaces in it. I renamed fruits to juicy fruits. I tried putting in [code] =INDIRECT(SUBSTITUTE(B1," ",""))[code] for the validation source and it validated to an error and still didn't work.

    Forget the calling the items out of order for a second. If I were to use this code and just put the data in the order I would like it to appear, add more items, and want a blank row between the next items on the Drop down sheet, what would I change to do that? I've added the data and tried to add the B8:B9 and B11 ranges [CODE] Range("B3:B6,B8:B9,B11").Value [CODE], but, as you can see, that didn't work.
    Attached Files Attached Files

+ 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. Dependent Drop Downs
    By Bumblbree in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2016, 11:45 AM
  2. [SOLVED] Dependent drop downs
    By gameplayer in forum Excel General
    Replies: 2
    Last Post: 12-04-2015, 11:49 AM
  3. [SOLVED] Dependent Drop-Downs (Indexed)
    By BobBing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2012, 05:33 PM
  4. Creating dependent drop downs
    By harrybelly in forum Excel General
    Replies: 2
    Last Post: 12-08-2011, 05:08 PM
  5. Dependent Drop-Downs
    By braydon16 in forum Excel General
    Replies: 2
    Last Post: 12-08-2011, 05:06 PM
  6. Auto-update initial drop-down selection based on previous drop-downs
    By thornomad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 09:55 AM
  7. Dependent drop downs.
    By Mattypb in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-16-2009, 08:47 AM

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