This article is contributed. See the original author and article here.

Here’s how to run a snippet of JS code when clicking a custom Ribbon button!

Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.