Created
July 23, 2018 07:42
-
-
Save MarcinusX/31114bf5f9849b1e22e312305ae5ec59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async setValidation(source: Excel.Range, target: Excel.Range) { | |
Excel.run(function (context) { | |
return context.sync().then(() => { | |
target.dataValidation.rule = { | |
list: { | |
inCellDropDown: true, | |
source: source.values.toString(), | |
} | |
}; | |
return context.sync(); | |
}) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment