1' GettingStartedwithExcel’s' Visual'Basic'for'Applications' ' This'introduction'presumes'prior'programming'experience,'such'as'C++'or'Java.' EL Excel Created on August 13, 2010. Insert data to a cell in excel from com or serial port Would like to create a macro to capture a snap shot of streaming data from a com port This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
![Port Port](http://www.electronics-lab.com/wp-content/uploads/2015/11/Fig0077.png)
![Vba Vba](/uploads/1/2/5/4/125464495/425636988.png)
» » » Using ActiveXperts Serial Port Component with VBA (Visual Basic for Applications) ActiveXperts Serial Port Component is a software development kit (SDK) that enables the user to communicate to a device over a serial interface. Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port. It can even be another PC, connected via a NULL modem cable. ActiveXperts Serial Port Component features the following:. Direct COM port support (like 'COM1'). TAPI (Windows Telephony Device) support (like 'Standard 56000 bps Modem');.
Support for RS-232/RS422/RS485, up to 256 simultaneous ports;. Support for all types of Hayes compatible modems;. Support for serial cable as well as USB cable or Bluetooth connections;. Support for Virtual COM ports (i.e.
COM ports redirected through the network);. Hardware flow control (RTS/CTS, DTR/DSR) and software flowcontrol (XON/XOFF) support;. Configurable baudrate/parity/stopbits, full buffered data transfer, text/binary data transfer. Step 1: Download and install the ActiveXperts Serial Port Component Download the ActiveXperts Serial Port Component from the and start the installation.
The installation guides you through the installation process. Step 2: Create a new Excel document Create the form displayed in the image below. To create the buttons, textarea's and drop down menu's, click 'View', 'Toolbars', 'Control toolbox'. (Click on the picture to enlarge) Step 3: Fill in the dropdown-menu's Wen you're finished setting up the form, you need to fill in the dropdown menu's. You need to load the content of your submenu when you open your workbook.You can do this using a visual basic code. To edit your visual basic code you need to be in design mode.
To get in design mode, click the button 'Design mode' on the control toolbox. You can edit the visual basic code behind your form in Excel by clicking the button 'View code' below 'Design mode' on the control toolbox. Open 'ThisWorkbook'.
(Click on the picture to enlarge) Type the following code in private sub workbookopen: Make sure you're directing to the right sheet (worksheets('sheet1')).