Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:52:12+00:00 2026-05-22T17:52:12+00:00

I’m completely new to VBA, even though I’m quite familiar with regular VB. I

  • 0

I’m completely new to VBA, even though I’m quite familiar with regular VB. I don’t know if this has to be done through VBA, or if it can be done with built-in Excel functionalities.
Basically, I have a bunch of data in columns on a hidden sheet.
There should be two dropdown lists on another sheet, one of which depends on the other’s selected value. There are three entities in the relationship though (see example below)
I have no idea how I get this to work, or even how the relationships between these rows would work.

Here’s an example of exactly what I want to achieve:
There are two columns on one sheet: “Employee” and “Project”.
Employee contains a set dropdown list of employees. This data is located in a hidden sheet.
Every employee is linked to a single department, and each department is linked to a number of projects.
Once the user has selected a particular employee, I want the “Project” column of the active row to fill up with a dropdown list containing all projects that are linked to the department the selected employee belongs to.
How would I go about setting these relations in Excel, and write the VBA function that makes this functionality happen?

I can’t provide you with an example of what the data columns on the hidden sheet look like, since I have no idea how I should arrange them to begin with.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:52:12+00:00Added an answer on May 22, 2026 at 5:52 pm

    Here you find a complete tutorial how to do this:

    http://www.contextures.com/xldataval02.html

    You don’t need VBA for this as long as the user of your sheet does not change the data which is allowed in your dropdown lists. If this is the case, I suggest you should add some kind of “update” functionality (using VBA). This update function has just to redefine the named cell area you provide for each of your dropdown lists whenever your allowed data changes.

    Changing the area is a one-liner in VBA, as far as you know the area (firstRow, lastRow, column) where the data resides:

      ThisWorkbook.Names.Add Name:="areaname", _
           RefersToR1C1:="=YourSheetName!R" & firstRow & "C" & column _
           & ":R" & lastRow & "C" & column 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.