+ Reply to Thread
Results 1 to 3 of 3

Communication between Excel sheet & USB port

  1. #1
    Registered User
    Join Date
    05-27-2009
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    2

    Post Communication between Excel sheet & USB port

    Hi, experienced Gurus!

    How can I communicate with a USB/COM port from within an Excel 2003 macro?
    Can I write, send, receive (or whatever) cell contents as text strings using xlVB code?

    With appreciation for any help -- George (Zimmer)

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Communication between Excel sheet & USB port

    Hello George,

    There are no direct ways to communicate with a COM or USB port using VBA. Port communication is very low level programming. That's why there are device drivers. There are 3 options I know of: Write a driver in C, Use the Windows API, or purchase a program to provide an interface to VBA. Click on the link to see an example of how to create a serial interface in VBA using the API. You will probably consider purchasing some software.

    Serial Port Communication in Excel (VBA)
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-27-2009
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    2

    re: Communication between Excel sheet & USB port

    Thanks, Leith.

    Your comment (including the reference) was extremely useful for me.

    Sincerely -- George

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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