Skip to main content
This example demonstrates how to collect multiple successive data fields from WinWedge. While this example only shows 4 fields of data being requested, you can easily modify this example to collect up to 40 fields of data by simply changing the NumFields variable.

WinWedge DDE server settings

Remember to set WinWedge up in DDE Server Mode! See the DDE Server Mode Setup Guide. DDE Application Name: Excel DDE Topic: System DDE Command: [RUN(“GetConsecutiveFields”)]

Excel instructions

Create or edit a macro module in Excel and enter the following code in the module. If your device only has a single field of data, see the slimmed-down version in Collecting a single field of data into Excel. (To create a new module click on Insert > Module from the Menus in the Visual Basic Editor Window.)
Last modified on November 3, 2026