Looks like the solution is not publicized well - there's a flag (isDefinitive
) on the button that automatically closes the backstage view once the button is clicked - not when the action completes.
<button id="btnCustomAction"
style="large"
label="Custom Action"
imageMso="HappyFace"
isDefinitive="true"
onAction="btnAction"/>
From MSDN:
Closing the Backstage view and returning to the current workbook occurs by setting the control's
isDefinitive
attribute in the custom UI XML.