Excel VBA read validation list into variable

后端 未结 1 589
孤城傲影
孤城傲影 2020-12-12 04:54

I was trying to find an Excel VBA code that reads validation list into a variable.

I\'m using Excel 2010 version.

In the code below I\'m dynamically setting

相关标签:
1条回答
  • 2020-12-12 05:23

    Assuming it's a list type (validation type 3), then Debug.Print Range(yourRange).Validation.Formula1 should print out a list. So Object.Validation.Formula1 would appear to work for you. See here for more info.

    0 讨论(0)
提交回复
热议问题