Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: autofit row height after setting height value

$
0
0
hmm.. aite.
I have one last question that is not related to height, but data validation.
I have two worksheets.
Worksheet#1 have two cells, let's say they are A1 and B1.
A1 is a datavalidation from a list from a range from worksheet#2.
The workbook contains named ranges with a scope of the entire workbook, and the names are the possible values of the datavalidation of A1.
Then I want Cell A2 of Worksheet#1 to have a data validation of a list depending on the value of Cell A1, which can be done in excel with
=INDIRECT($A1)
pretty much A2 is getting the value of A1, and creating a dropdown menu which contains the values of ranges that have the name of the value of A1.
How can this be implemented?
I just need to know how that "=INDIRECT()" part can be done with ClosedXML.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>