ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to get data validation list (https://www.excelbanter.com/excel-programming/305912-how-get-data-validation-list.html)

Ting[_2_]

How to get data validation list
 
Hi,

How can I get a cell's validation list in VBA code?

I know the list can be input manually or programatically
using "Validation.Add", but how to retrieve it in code?
I want to know the valid input range of some cells in an Excel file.

Thanks in advance.

Ting



JE McGimpsey

How to get data validation list
 
Try:

ActiveCell.Validation.Formula1

In article ,
"Ting" wrote:

Hi,

How can I get a cell's validation list in VBA code?

I know the list can be input manually or programatically
using "Validation.Add", but how to retrieve it in code?
I want to know the valid input range of some cells in an Excel file.

Thanks in advance.

Ting


Ting[_2_]

How to get data validation list
 
Thanks! Just it is.

Ting

"JE McGimpsey" дÈëÓʼþ
...
Try:

ActiveCell.Validation.Formula1

In article ,
"Ting" wrote:

Hi,

How can I get a cell's validation list in VBA code?

I know the list can be input manually or programatically
using "Validation.Add", but how to retrieve it in code?
I want to know the valid input range of some cells in an Excel file.

Thanks in advance.

Ting





All times are GMT +1. The time now is 05:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com