+ Reply to Thread
Results 1 to 2 of 2

Excel communication to serial port

  1. #1
    Registered User
    Join Date
    12-27-2017
    Location
    lancs
    MS-Off Ver
    2007
    Posts
    1

    Excel communication to serial port

    Hi
    I do not know very much about VBA programming but I am sure that I have read somewhere that it can be used to send commands to an external device via the serial port.

    at the moment I am using simple command line programs like Putty and Termite. I use it to send a whole host of commands but the problem is I have to type them in one by one without a simple way of storing and controlling multiple commands.

    As an example I open putty and send the command "id" to the electronic device that I am communicating with and the device returns tect showing the product name and serial number.

    If I could have a macro enable spreadsheet with macros assigned to command buttons then it would make my life much easier, however I am not sure where to start.

    Could anyone offer a suggestion of code using the above example so a click on a command button would oped "Com 10" "Baud rate 9600" "parity 8" "stop bits 1" it needs to send the text "ID" and capture the response.


    Thank you in advance for your kind help.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Excel communication to serial port

    You seem to know more than others ...

    Maybe in this way or similar (when it comes to sending codes):
    Please Login or Register  to view this content.
    , but this matter is rather strange/unfamiliar to me ... sorry ...
    In my opinion, you also need to have a proper/adequate 'control' to communicate with the electronic device ( ? mscomm.ocx, mscomm32.ocx, ietimer.ocx ?)

    See this topic and related:
    https://support.microsoft.com/en-us/...s-oncomm-event

    ... and also in the forum ...
    Last edited by mjr veverka; 12-27-2017 at 04:51 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Serial Communication
    By JohnnyDontKnow in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2017, 11:20 AM
  2. Serial port to Excel (GPS, NMEA)
    By Leiska in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2016, 05:25 AM
  3. Serial Port Communications within Excel
    By ExclDawg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-18-2013, 05:15 PM
  4. How to link Excel VBA to serial COM port
    By robertlaw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 11:38 AM
  5. Communication between Excel sheet & USB port
    By GZimmer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2009, 08:18 AM
  6. [SOLVED] excel, visual basic and serial communication
    By Peterken in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2006, 04:50 PM
  7. [SOLVED] entering data from a serial port to excel
    By David C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1