You need to create a button on the Word ribbon that will run the vbs extension macro. Ribbon design and macro communication are programmed in visual studio 2017 (windows 7, x64). As a result, a button is actually created on the ribbon, but when it is clicked, the macro does not start. When you press F5 in Visual Studio build is not completed until the end; an error message appears. I think it is because of this that the macro does not start. How to solve this problem?
Here is how I linked the button to the macro in MainRibbon.cs :
private void buttonDelAllReq_Click(object sender, RibbonControlEventArgs e) { Process pr; pr = Process.Start("C:/Users/FlamingPony/Desktop/module1.bas"); pr.WaitForExit(); } 