Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation date hlist ne fonctionnent pas #282

Closed
MarineDurthaler opened this issue Aug 8, 2024 · 1 comment
Closed

validation date hlist ne fonctionnent pas #282

MarineDurthaler opened this issue Aug 8, 2024 · 1 comment
Assignees
Labels
3. bug Something isn't working

Comments

@MarineDurthaler
Copy link
Collaborator

image

@MarineDurthaler MarineDurthaler added the 3. bug Something isn't working label Aug 8, 2024
@yves-amevoin yves-amevoin pinned this issue Aug 11, 2024
@yves-amevoin
Copy link
Collaborator

Excel .Validation on a range has erratic behaviour

Validation works differently across excel versions and across platforms. It Seems like on some os/excel versions, validation works with converted formula in the application/os local language. On some other os/excel versions, validation works with formula in english. Here is a workarround:

1- attempt to set validation in the language of the platform by converting the formula in the corresponding language (using .FormulaLocal property of a Range object)
2- If it fails, use the formula in English (.Formula property of a Range object).

One case should succeed. If both cases fail, then either the formula contains error, or the type of the variable is not precised. The correct validation to use (Decimal, Date or Whole number) depends on the type of the variable.

Important

It is important to add the type of variables on which you wish to set validation. The right validation to use
is inferred from the type of the variable you are setting the validation

yves-amevoin added a commit that referenced this issue Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants