Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default reading data from com port into 2 different cell locations.

Here is part of my code to read in data from the com port and send the same
data to 2 different cell locations. I'm wondering when I send the data to
the first cell, is there any data left for cell H5 that I'm sending it to?
The selected row increments each time, cell H5 stays the same every time.
I'm also open to any suggestions to shorten up this code.




'Val2 ID Number
UserForm1.MSComm1.InputLen = 4 '# of char
to read in from com port.
RB = UserForm1.MSComm1.input 'Sets
input on com port to variable RB.
Excel.Range("C" & Excel.Selection.Row).Select 'Select cell
c in selected row.
Excel.Selection = RB
'Send data to cell c in selected row.
Cells (H5) = RB
'Send data to cell (location is the same always)


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
Can CELL Return Multiple Data Locations? Val Excel Worksheet Functions 3 May 18th 06 02:35 AM
reading data from com port into excel spreadsheet Neil K Excel Programming 2 September 25th 04 06:36 PM
Automatically filling cell with data from COM port William Loring Excel Programming 2 April 21st 04 04:01 PM
serial port data acquisition jgseas Excel Programming 2 March 3rd 04 04: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


All times are GMT +1. The time now is 10:07 PM.

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"