How to auto populate a drop down from a drop down list ?

VBAEXCELNew

New Member
Joined
Apr 3, 2023
Messages
38
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I have a 2 different drop down list where 1 will be auto populate from another
my 1st drop down is in Column D while my 2nd drop down is on Column J

i would wan my first drop down list when choose a value it be auto populate in the 2nd drop down list

example
1682406601882.png

If i choose 3 G my column J will auto populate as Sale (Default)

how can i write this in Vba ?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
i would wan my first drop down list when choose a value it be auto populate in the 2nd drop down list which is
Column D to auto populate on Column J
So if i select 3 G in Column D, my column J should auto populate it as Sale (Default) from the drop down
 
Upvote 0
I not sure what to do after i check for column D how can i auto populate in Column J
Here my vba code
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim valueD As Range
Set valueD = Range("D6:D999")
If Not Application.Intersect(valueD, Range(Target.Address)) Is Nothing Then
    If Target.Value = "3G" Or Target.Value = "4A" Or Target.Value = "4B" Or Target.Value = "4C" Or Target.Value = "4H" Or Target.Value = "4K" Or Target.Value = "4P" Then
    

    

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

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