Skip to content

Conditional Data Validation using named range and indirect #1012

@recon2710

Description

@recon2710

I am trying to make conditional list valdation based on another data validation list. The way to do this in excel is define a named range and then the dependant select list in the source use "indirect()" function to refer to the initial list. The problem I have is setting indirect in th data validation I use "SetDropList()" which takes a []string; I get around this by just having one item in the slice "indirect()" and then passing.

Everything looks fine however the validation does not work until I manually click in to it a press OK; then everything works fine. I think the issue is the "SetDropList()" passes indirect() as a string and it doesnt recognize it as a formula until I click ok.

any suggestion on how to pass formula into data validation source? Maybe another method?

BTW bought you coffee the other day. Great Package!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions