Other DDE macros and code examples
Opening and closing an application from VBA
Open and close BC-Wedge, TCP-Com, or any other Windows program from an Excel, Access, or Word macro.
Visual Basic for Applications (VBA) is part of all Microsoft Office products, including Excel, Access, Word, and more. It can easily be used to open up any Windows program. The example below is configured for the BC-Wedge. Note that if you are running on a 64-bit machine, your path will be different. Your path will also be different if you installed BC-Wedge in a location other than default or if you are trying to open a program other than BC-Wedge.
Closing any application from VBA can be accomplished with the example code below. This can be used for both our applications or any other windows program. We recommend using this method if you are using BC-Wedge, TCP-Com, COM-File or TCP-File. For other applications, such as WinWedge or B-Coder Pro, there is a much easier method facilitated by DDE (Dynamic Data Exchange). Our WinWedge example can be found at the bottom of the Launching WinWedge from within Excel support article.
The code is documented below. To change the program to TCP-Com, TCP-File, COM-File or any other application, simply change the name of the exe.
Last modified on November 3, 2026