Results 1 to 5 of 5

Need to reformat data imported from file

Threaded View

  1. #1
    Registered User
    Join Date
    10-04-2008
    Location
    Laval, Qc CANADA
    Posts
    34

    Need to reformat data imported from file

    - How do I use a loop to read a line until an empty cell or a given word?
    - What is the command for until end of file?

    Here is the detailed situation: I have a word file which contains data generated by a sampling equipment. However, while all the data is easily imported, the final result still needs sorting, mainly because one line of data gets to be on a few lines of text, which is resulting in a table where one row is actually the content of two or three rows...

    I know it could be done manually, but a few thousand readings definately makes it worth while to write a few lines of programming. While I know I can write a loop, I cannot simply base it on an amount of cells or lines because the original sampling device sometimes omits a few items.

    So the loop needs to read a line until an empty cell, cut and paste all following data on the next lines at the end of this line, and erase those lines once copied, then jump to the next.
    Last edited by anmck; 01-04-2011 at 12:52 PM.

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