Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sending Text Messages with Excel??? | Excel Worksheet Functions | |||
Sending/Transferring Text? | Excel Programming | |||
Sending text from a Text box to a sheet | Excel Programming | |||
Sending Mail from Excel: Body Text | Excel Programming | |||
VBA code for sending cells B6:J10 to text file. | Excel Programming |