Hi Jonathan, we don't provide a way to programmatically create script buttons right now. But thanks for providing useful feedback!
Add link to Office Script to button
Jonathan Giunta
0
Reputation points
Hello all, I need to create a button in an Online Excel file that, when clicked, starts an Office Script. Now, i know how to programmatically create a "button" shape, but i don't know how to attach links to it. I've seen that the "Shape" object has a property called "m_scriptLink" that contains the link to the script when the button is generated by excel (Clicking "add button" when you are on the "automate" section and select a script). How can I programmatically set this link or access this property?
Microsoft 365 and Office Development Office JavaScript API
1,066 questions
Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft 365 and Office Excel For business Windows
3,888 questions
1 answer
Sort by: Most helpful
-
shahzeb-msft 0 Reputation points Microsoft Employee
2023-04-26T23:11:39.2033333+00:00