Excel Macro - How to add a dropdown menu to a cell aka Data Validation

in #validation7 years ago


A simple macro tutorial showing how to create a macro that will add a drop down menu to a cell of your choice with the variables you define.

Code :

Sheets("Sheet1").Range("B4").Select
With Selection.Validation
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, _
Formula1:="=Sheet2!$A$1:$A$5"
.IgnoreBlank = True
.InCellDropdown = True
End With

For some of the previous tutorials we have covered please visit the link below.

Insert row video;

...

If this has helped you then please like and subscribe.
Thanks for watching


▶️ DTube
▶️ IPFS

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.030
BTC 58443.62
ETH 2524.10
USDT 1.00
SBD 2.34