Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default RS232 to Excel woorksheet

Is there anyone that could help me to read the com port into an excel
worksheet via a macro?

FB

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default RS232 to Excel woorksheet

Hi,
this was here before , see below
hth
Gys

================================================== ==============================

check out

http://www.handyarchive.com/free/rs232/

i think i'd go for CPSplus...
shareware, free trial , EUR 30 to register.

it contains 3 templates for excel data.
with example code to program via DDE



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool

================================================== ==============================

Here is some information previously posted by others in response to similar
questions.

The best way to do it is to use the MSComm control that comes with Visual
Basic. If you want to see how this works, load and single step through the
VBTerm sample that comes with it (should be in the \samples subdirectory; if
not, I think you can download it from Microsoft's Visual Basic site).

One important note, though, is that you must know the syntax of the commands
to your meter (or other device), as sent via RS-232. Once you know those
you can simply modify the VBTerm code to suit your own purposes. It's
complex at first, but stick with it!


"Poor Man's Serial Instant Messenger"
http://www.htservices.com/Tools/Visu...unications.htm
Visual Basic Serial Communications Example Tutorials Source Code Programs


http://www.cpcug.org/user/clemenzi/t...s/SerialIO.htm
Serial I/O (RS232)



http://www.allapi.net/vbexamples/lis...ategory=SOURCE

Regards,
Tom Ogilvy

"John Gittins" wrote in message
...
How do I write and receive data from RS232? Does XP cause any problems in
this?

--
John Gittins
Production Engineer
SRC Automotive
4431 West Calhoun
Springfield
MO 65810
Phone 417 829 2411
Fax 417 829 2427


================================================== =======
Geoff

I suggest you search the net for visual Basic code on
using the COM port. You should be able to copy this code
into a VBA module and run it from there.

It will certainly use windows API functions but in nearly
all cases they will work OK in VBA

Dermot Balson
Free VBA code for encryption, compression, internet
connectivity
http://www.webace.com.au/~balson/Ins...l/Default.html
Last updated 6 June 2002


-----Original Message-----
I have an electronic timing device that I'd like to

connect via the serial
port on a laptop.

I can see no mention in manuals/help about use of COM1:.

Can anyone advise
if this is possible.

Thanks,
Geoff

================================================== ======================


"Franz" wrote in message
oups.com...
Is there anyone that could help me to read the com port into an excel
worksheet via a macro?

FB


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default RS232 to Excel woorksheet

a lot of confusion......

does MSComm come with the VBA in Excel or do I need to install VB?

FRANZ

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default RS232 to Excel woorksheet

Hi,
if you want the serial control you need MSCOMM32.OCX which is in VB .It is not
simple to get serial communication in Excel if you want to program it yourself
..Reflected in the price if you buy a commercial product , if you ask me. Here is
a firm :

http://www.taltech.com/

Examples see :

http://www.granite.ab.ca/access/serialport.htm

Or search Google for Group :microsoft.public.excel.programming and keyword
Serial
Gys


wrote in message
oups.com...
a lot of confusion......

does MSComm come with the VBA in Excel or do I need to install VB?

FRANZ


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default RS232 to Excel woorksheet

reading serial data into an Excel spreadsheet is an extremely
difficult thing to do using VBA code in a macro. It requires some very
complex calls to the Windows API and although I am certain that it is
possible, the amount of effort required to do so would be extensive
and probably not worth it.
A better way to go would be to use an off the shelf tool that is
designed for this type of job.
The best one that I know of is called WinWedge from TAL Technologies.'
You can learn more about WinWedge at the following URL:
http://www.taltech.com/products/winwedge.html

WinWedge basically makes it extremely easy to both send and receive
RS232 data directly from within an Excel spreadsheet.


On 10 Feb 2005 09:48:00 -0800, "Franz"
wrote:

Is there anyone that could help me to read the com port into an excel
worksheet via a macro?

FB


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wedge programs - linking rs232 to excel 2003 NDBC Excel Discussion (Misc queries) 1 August 20th 09 10:57 AM
rs232 with excel x Excel Discussion (Misc queries) 2 January 17th 05 09:25 PM
How do I delete Rows from my woorksheet? Leslie Excel Worksheet Functions 8 December 15th 04 05:33 PM
Reading the pin voltage fm RS232 port into excel by using VBA oscar[_2_] Excel Programming 2 February 17th 04 05:38 PM
RS232 to Excel John Gittins Excel Programming 2 July 17th 03 11:14 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"