Can I have a VBA code that will do the following on cell value change: In my sheet 'Key…
- User
Can I have a VBA code that will do the following on cell value change:
In my sheet 'Key Allocation' column 'D' all cells contain an identical List Box. If I select a value from this list in column D irrespective of the row address, find the value in sheet 'List' range C1:G1 that matches the value selected in column D in sheet 'Key Allocation'. For the matching value found in sheet 'List', use the specific column data from row 2 to the last completed row' to populate a list (Offset(0, 1)) in column E in sheet 'Key Allocation' of the same row.
If I select a value from the list in column E, find the value in sheet 'List' range H1:AK1 where the value of E forms the begining of the cell value and the last value of the cell matches the value in column C in sheet 'Key Allocation' of the same row. For Example: if the value in C5 = "St.John" and the value selected in column E5 = "Pedestrian Gates" then find the value in H1:AK1 = "Pedestrain Gates St.John". For the correct combination of values found in sheet 'List', use the specific column data from row 2 to the last completed row in sheet 'List', to populate a list (Offset(0, 1)) in column F in sheet 'Key Allocation' of the same row .
- Assistant
Here is the VBA code that will achieve the described functionality:
vba - User
When I select a value in column D, it does not create a list in column E ( Offset.(0, 1) )
- Assistant
- User
It is not creating a list in column E
- Assistant
I apologize for the oversight. To populate a list in column E (Offset(0, 1)) based on the selected value in column D, we need to modify the code. I have updated the VBA code to correctly populate the list in column E. Please find the revised code below:
vba