Macros and Code Samples
Skip to: Excel, Access, Word, Visual Basic (and C/C++, .NET), ASP, and more...
This page contains example macros and subroutines for some of the more common PC applications. These examples demonstrate how to do things like transmit and receive serial data using Dynamic Data Exchange with WinWedge or launch and unload WinWedge from memory as well as perform various other related functions.
Microsoft Excel
Requesting data from WinWedge using a VBA subroutine
Inserting a Single Field of Data into Excel (Above and Below)
Continually Polling Multiple Devices In Sequence
Sending DDE Commands From Excel to WinWedge
Launching WinWedge from an Excel macro
Introduction to Excel (and VBA) Macros
Requesting Data from WinWedge using VBA SetLinkOnData Method
Collecting data from Multiple Serial Ports Simultaneously
Advanced Excel Tricks: Reading large arrays of data into Excel
Passing Data from WinWedge to Excel using DDE with Multiple Open Workbooks
Getting Past the 40 Field Limit in WinWedge
Microsoft Access
Collecting Data Directly into a Table in Access
Collecting Data Directly into a Form in Access
Closing and Opening WinWedge in Access
Transmitting Commands to Devices from Access
Basic Inventory Tracking Example Database
Microsoft Word
Reading Serial Data Into Word Using DDE (Word 2.0-6.0)
Reading Serial Data Into Word Using DDE (Word 95 and later)
Prompt the User for a Barcode Message (B-Coder and Word)
Visual Basic 6.0, C/C++, .NET
Sending DDE Commands to WinWedge from VB 6
Detecting if WinWedge is Running from a VB Program
Using DDE in .NET to Communicate with WinWedge
Linking a VB Text Box to a WinWedge Data Field
ASP (Active Server Pages)
Using WinWedge with Visual Basic to Pass Serial Data to an Active Server Page
Using an ASP page to send data out the serial port
Other Applications
Wonderware inTouch: Linking Serial Data from WinWedge
Wonderware inTouch: Sending Commands to your Device
Visual Fox Pro: Collecting Data using WinWedge
Visual Fox Pro: Communicating with Devices through WinWedge
Lotus 123: Macro Examples
Quattro Pro: Collecting Data To a Column In a Quattro Spreadsheet
Minitab: Send Serial Data to Minitab Via DDE
Intellution FixDMACS: Input Serial Data using DDE
MATLAB: Launching, requesting data, and closing WinWedge from Matlab
Origin 5.0: Launching the WinWedge and Collecting Data to a Column