Skip to content

Instantly share code, notes, and snippets.

@davecra
Last active June 20, 2017 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davecra/20269608b9e74100a8ec7b1e6671f163 to your computer and use it in GitHub Desktop.
Save davecra/20269608b9e74100a8ec7b1e6671f163 to your computer and use it in GitHub Desktop.
How to call a MessageBox using officejs.dialogs
MessageBox.Reset();
MessageBox.Show("This is a test with a lot of text that simply has not point but to show you what " +
"happens when you place a lot of text in a MessageBox for any point other than to " +
"place a whole lot of text in the MessageBox.",
"This is the Caption",
MessageBoxButtons.AbortRetryCancel,
MessageBoxIcons.Stop,
true, "Check this if you want me to stop nagging you.",
function(buttonPressed, checked) {
console.log("The button pressed was: " + buttonPressed);
console.log("The checkbox was checked? " + checked);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment