+ Reply to Thread
Results 1 to 3 of 3

Text to Excel with pre-defined break lines using Macro

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    SF, California
    MS-Off Ver
    Excel 2003
    Posts
    5

    Text to Excel with pre-defined break lines using Macro

    Sorry I had to post double posts. I am not sure this is Word or Excel issue:

    Hello all,
    I have a text file that open with Excel 2007 on daily basis. I usually use Fixed Width to add break lines and delete the ones I don’t need.
    Is there a way I can use an Excel Macro that will:

    1- Ask me and allow me to browse for the text file (Test.txt) to be loaded into Excel.
    2- Automatically use Fixed Width.
    3- Remove/Clear all Break Lines.
    4- Place only these break lines in these locations:
    9,16, 41, 49, 90, 106, 136, 166, 196, 226, 256 (Column 41 – 49 AS TEXTS) and the rest as General.
    5- Sort the sheet: Column D Then A ascending.


    Thanks so much in advance.
    Jameel

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Text to Excel with pre-defined break lines using Macro

    I can't make it for you, i'm sure other can.

    But if you record it with the macro recorder you get the code you need.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    SF, California
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Text to Excel with pre-defined break lines using Macro

    I tried recording it but didn't help.

    Excel's automatic break lines are not 100% accurate. The text file I am importing is changes all the time so the recording won't help.

    Anyone please?
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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