Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Sending text

Hi,

I wrote a small test program that would communicate VBA
with an external microprocessor via the serial port. I'm
using MSComm. This code works fine when I send it out in
this fashion:

MSComm.Output = "123456"

However, when I use a variable for the output, I get an
error stating it's an invalid property value:

Dim v as string
v = "123456"
MSComm.Output = v

How is this different than what I did previously? I don't
know what to do. I tried using Str(v), but that doesn't
work either. Help! Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Sending text

Sorry...I figured it out. Ignore the previous message.


-----Original Message-----
Hi,

I wrote a small test program that would communicate VBA
with an external microprocessor via the serial port. I'm
using MSComm. This code works fine when I send it out in
this fashion:

MSComm.Output = "123456"

However, when I use a variable for the output, I get an
error stating it's an invalid property value:

Dim v as string
v = "123456"
MSComm.Output = v

How is this different than what I did previously? I

don't
know what to do. I tried using Str(v), but that doesn't
work either. Help! Thanks.
.

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
Sending Text Messages with Excel??? sh0t2bts Excel Worksheet Functions 0 November 4th 04 10:35 PM
Sending/Transferring Text? Clint Keller Excel Programming 1 May 19th 04 11:09 PM
Sending text from a Text box to a sheet morry Excel Programming 4 February 7th 04 10:17 PM
Sending Mail from Excel: Body Text Kathryn Excel Programming 3 December 1st 03 07:56 PM
VBA code for sending cells B6:J10 to text file. lothario[_9_] Excel Programming 6 October 14th 03 09:08 PM


All times are GMT +1. The time now is 07:09 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"