By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,042 Members | 1,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,042 IT Pros & Developers. It's quick & easy.

Open / Operating Serial Communication Port

P: n/a
I have a small project, which need use both RS232 port and
excel for data plot. I considering use excel VB macro for
the entire project.

Although I used serial port extensively in MFC, I am not
sure how to open serial port from VB. Can anyone give me
a little light?

Really appreciated,

Ben Zhu
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Ben,
You can use MSCOMM.OCX if you have VB6 loaded on your machine.

Alternative there are 2 samples on www.gotdotnet.com that supports Serial
communication.

http://www.gotdotnet.com/Community/U...x?query=serial

I've look at the first two listed (from corcav & LoMan).

Hope this helps
Jay

"Ben Zhu" <bz**@revivant.com> wrote in message
news:07****************************@phx.gbl...
I have a small project, which need use both RS232 port and
excel for data plot. I considering use excel VB macro for
the entire project.

Although I used serial port extensively in MFC, I am not
sure how to open serial port from VB. Can anyone give me
a little light?

Really appreciated,

Ben Zhu

Nov 20 '05 #2

P: n/a
Hello,

"Ben Zhu" <bz**@revivant.com> schrieb:
I have a small project, which need use both RS232 port and
excel for data plot. I considering use excel VB macro for
the entire project.


Thomas Scheidegger's Serial Port FAQ:

http://tinyurl.com/aawh

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

P: n/a
Hi,

Actually, this sounds like an Excel VBA question, not VB .NET? In either
case, you can download NETComm.ocx from my homepage. It works fine in
Excel, even though I designed it as an easy way to do serial IO in .NET.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #4

P: n/a
VBA in Excel does not support serial communications without either
writing some very complex code that calls Windows API functions
directly or using a serial communications tool provided by a third
party vendor.
If you have VB6, you can use the MSComm32.OCX ActiveX control however
it is not very easy to use in Excel.
You may want to look at a product called WinWedge at www.taltech.com
WinWedge is designed to make it extremely easy to send and receive
serial data directly from within other programs like Excel, Access or
just about any other Windows program. WinWedge can save you countless
hours of serial I/O coding and it works great with Excel.
On Tue, 9 Sep 2003 16:59:23 -0700, "Ben Zhu" <bz**@revivant.com>
wrote:
I have a small project, which need use both RS232 port and
excel for data plot. I considering use excel VB macro for
the entire project.

Although I used serial port extensively in MFC, I am not
sure how to open serial port from VB. Can anyone give me
a little light?

Really appreciated,

Ben Zhu


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.