twoperscent avatar

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

twoperscent

Published: 22 Feb 2018 › Updated: 22 Feb 2018Excel Macro - How to add a dropdown menu to a cell aka Data Validation

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


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;
http://www.youtube.com/watch?v=XBi_cU...

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


▶️ DTube
▶️ IPFS

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

Written by

MMA Fan, Excel Blogger, Crypto Investor, Tropical Fish Keeper

Read more #validation posts


Best Posts From twoperscent

We have not curated any of twoperscent's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From twoperscent