I'm trying to add Data Validation to a cell in a worksheet. However, that Data Validation is a formula that references another sheet in the workbook.
In Excel, the Data Validation looks like this:
Essentially it's:
Allow: List
Source: =Other_Worksheet!$A$22:$A$37
I can't seem to make this work in XlsIO. Is it not supported? I don't want to hard-code the list of values in my application if I can avoid it.
The code I'm doing so far:
var assessmentPhaseValidation = vulnsTab.Range["A1:A" + (row - 1)].DataValidation;
assessmentPhaseValidation.AllowType = ExcelDataType.User;
assessmentPhaseValidation.PromptBoxText = "Data Validation List";
assessmentPhaseValidation.IsPromptBoxVisible = true;
assessmentPhaseValidation.ShowPromptBox = true;
However, when I do that, it strips off the other sheet name, making the validation in the current sheet (which doesn't work).