How do I create a dynamic dropdown list based on a range of values in column B by using VBA code?
The data are from column B in Sheet 1. I want to make the dropdown list on cell A2 in Sheet 2.
This is the example of the data set in Sheet 1 (Name = Column A; Level = Column B)
| Name | Level |
|---|---|
| John | Level 1 |
| Mike | Level 1 |
| Lewis | Level 2 |
| Harry | Level 3 |
When one of the lists is selected it would copy the data to column B in Sheet 2.
For example: when "Level 1" is chosen, then VBA will copy John and Mike to column B in Sheet 2.

You don't need vba to do this. Steps: