Consulting

Results 1 to 2 of 2

Thread: Place data of logfile in a sheet

  1. #1
    VBAX Regular
    Joined
    Jan 2005
    Location
    Aalst - Belgium
    Posts
    14
    Location

    Exclamation Place data of logfile in a sheet

    I've got an logfile with a lot of information that looks like this:

    17.01.2005 08:59:07
    Wp ID: 0774503
    Left Mode: P2.X_Alu OK
    Bolt 01 Program: P2.X_Alu Bolt T: 140.8 Bolt A: 66 OK Errors:
    Bolt 02 Program: P2.X_Alu Bolt T: 142.0 Bolt A: 73 OK Errors:
    Bolt 03 Program: P2.X_Alu Bolt T: 143.5 Bolt A: 70 OK Errors:
    Bolt 04 Program: P2.X_Alu Bolt T: 143.6 Bolt A: 68 OK Errors:
    Bolt 05 Program: P2.X_Alu Bolt T: 141.1 Bolt A: 69 OK Errors:


    17.01.2005 08:59:33
    Wp ID: 0774503
    Left Mode: P2.X_Alu OK
    Bolt 06 Program: P2.X_Alu Bolt T: 140.4 Bolt A: 64 OK Errors:
    Bolt 07 Program: P2.X_Alu Bolt T: 140.1 Bolt A: 68 OK Errors:
    Bolt 08 Program: P2.X_Alu Bolt T: 142.7 Bolt A: 60 OK Errors:
    Bolt 09 Program: P2.X_Alu Bolt T: 140.3 Bolt A: 63 OK Errors:
    Bolt 10 Program: P2.X_Alu Bolt T: 142.3 Bolt A: 66 OK Errors:

    Now i want every thing in an excel sheet in colums like this:
    Bolt,program, Bolt T: , Bolt A: ,...

    But the logfile is 10mb and is to much work to do it manually.
    Anybody an idea how to solve it with vba ?

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    First copy the data into Excel. Then use (Data | Text To Columns) on the data to modify it.

    In the Text to Columns wizard:
    1) Choose Delimited
    2) Check the box for Space
    3) Select General and for the destination just put the cell address for where you want the data to start.

Posting Permissions

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