+ Reply to Thread
Results 1 to 3 of 3

Forcing imported data into a specific cell (or cells)

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    tracy, ca
    MS-Off Ver
    Excel 2003
    Posts
    39

    Forcing imported data into a specific cell (or cells)

    Hello,

    I wasn't quite sure what to title this to be honest. Here's the situation:

    We have an electronic balance where when you hit the "print" button, it prints out data into Excel. It prints the date and time in one cell of a column, it prints the weight of the object in the adjacent cell, and it prints the unit of measurement in the third column. To be honest, I have no idea how this works, but maybe someone here does (or at least has a general idea).

    The problem that I want to solve is that you have to click specifically on the cell you want Excel to start adding data. For instance, if you click on a cell in the "weight 1" column, it will first add the date and time to that cell in the "weight 1" column, then it will add the weight to the "unit" column, and then it will add the "unit" to the next "date and time" column, which of course is not where that data belongs. What I want is for excel to start adding data to the first empty cell, once the "print" button is pressed on the balance, no matter which cell is selected in the worksheet. When it has gotten to the final column, which is labeled "observations", I want it to be able to start over from the next row. There are 6 weight measurements per row, and associated with each of those measurements is the date and time and the unit. The main purpose of doing this is to prevent write over mistakes from occuring or putting data where it doesn't belong. Also, all the columns to the left of the first "date and time" column will be filled in already. I put in an example of how the output looks when you hit print on the balance.

    I am uploading a blank copy of this worksheet so you can see what I mean. If anyone can help, it is greatly appreciated. I'm not even sure this is possible, but I thought I'd ask. Please ask if you need clarification on what I am looking for. Thank you!
    Attached Files Attached Files
    Last edited by kenab1; 01-20-2010 at 02:04 PM.

  2. #2
    Registered User
    Join Date
    01-11-2010
    Location
    tracy, ca
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Forcing imported data into a specific cell (or cells)

    Still seeking an answer. Does anyone even know if this is possible or not? Thanks.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Forcing imported data into a specific cell (or cells)

    Unfortunately, you're transferring data directly from your balance/printer to the Excel sheet (through a RS232 cable?). There's no code in the sheet that manipulates where it goes. I do not know if it's possible to intercept this signal and direct it to the first empty cell in Column K (for example). Ask a moderator to move this to the programming folder. Maybe they would have a better understanding.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1