Generate Data Validation List based on Non-active Cell

JLI27

New Member
Joined
Nov 21, 2014
Messages
11
Hi,

I am trying to create a simple solution to allow the contents of a drop-down data validation list (within a table) be determined by the value of a cell 2 columns to the left of the drop-down cell; a Name -> Job relationship.

Workbook after the link > https://www.dropbox.com/sh/si7t810zjfqm6xl/AADKG0lmZ7kjFrq6pdTohFATa?dl=0

The worksheet Emp-Pay contains a table which has a columns called Name and Job. The Job column uses a data validation list the contents of which are from the named range dddlstJob.

The use case is as follows; user enters name in the Name field and then selects a value from the relevant Jobs in the Job column. The relationship between Name and Job is defined in a second table Emp-Job.

I currently have a VBA worksheet change action causing cell U1 to equal the value of the current cell and drive the ddlstJob formula.

Problem; when the user goes to select the Job data list is moves the active cell from the Name field and messes up the ddlstJob list making the list empty.

I'd really appreciate any help with this, thanks all.

John
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top