Skip to main content
Use either of the two examples below to launch WinWedge directly from Excel. The first example uses the ShellExecute function as defined. This allows you to launch the WinWedge configuration file just knowing the file name and path. If it is located in the same folder as the Excel workbook, then you can just use the file name. The second example uses the Shell function and requires that you know the full path of WinWedge and the file name and/or path of the configuration file. This example just requires that you know the file name of the WinWedge configuration file, or if the file is stored in a different location than the Excel workbook, the full path of the file. This code is compatible with both 32-bit and 64-bit versions of Office.

Launching WinWedge from Excel using shell

This example requires you to put in the full path of the file and the full path of the WinWedge executable. Use this if you encounter any issues with the code above or if you want to avoid using ShellExecute.
Note: If you name an Excel subroutine “Auto_Open()”, Excel will automatically run the routine whenever the spreadsheet that contains it is initially opened. The Auto_Open subroutine is an excellent place to launch the Wedge (as well as do any other initialization functions that you might require).

Close WinWedge from Excel

Similar to the Auto_Open subroutine, Excel also supports an Auto_Close subroutine that runs automatically when you close your spreadsheet. This might be a good place to tell the Wedge to quit and unload itself from memory as in the following example.
Last modified on November 3, 2026