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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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