+ Reply to Thread
Results 1 to 8 of 8

Distict StateWise and export Excel from Text file input

  1. #1
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Distict StateWise and export Excel from Text file input

    Hello Experts,

    I got below code by Jindon Sir,
    with the help of this code i am trying to solve the my problem also i am trying to Ado connection but got fail.

    I have text file with Carat ("^") Separator around 24,00,000 data and having 3 Columns "A, "B", "State"
    there is 28 States in Column 3. i want state wise excel from this input.
    means total 28 or whatever state in it with all data.

    Below is the code where i am working on

    Please Login or Register  to view this content.
    Last edited by mohan.r1980; 01-18-2019 at 04:36 AM.
    Regards,
    MohanS


    "Perfection is not attainable, but if we chase perfection we can catch excellence." - Vince Lombardi

    You can simply say thanks by clicking "*Add Reputation" icon

  2. #2
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Distict StateWise and export Excel from Text file input

    Hi,

    I have manage 99% solution,
    Problem is that after splitting columns it find alpha numeric string (eg. wb322322710019) in 2nd column but it read as null
    i don't understand why it is.


    Please find the attached same sample input file.

    here is my code

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Distict StateWise and export Excel from Text file input

    Above Code based from Jindon Sir.

    I will be most happy if Jindon Sir look in this thread.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Distict StateWise and export Excel from Text file input

    I can hardly believe
    Quote Originally Posted by mohan.r1980 View Post
    I have manage 99% solution,
    Because
    Quote Originally Posted by mohan.r1980 View Post
    Problem is that after splitting columns it find alpha numeric string (eg. wb322322710019) in 2nd column but it read as null
    i don't understand why it is.


    Please find the attached same sample input file.

    here is my code

    Please Login or Register  to view this content.
    Google with the key word "Schema.ini"

  5. #5
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Distict StateWise and export Excel from Text file input

    Jindon Sir Thank you Very much for looking this thread.

    Today i am facing another issue when i try to open rs it says error msg
    Error.jpg

    i havent change the query but dont know why this error occur.

    Please Login or Register  to view this content.
    above query run successfully yesterday

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Distict StateWise and export Excel from Text file input

    It should not work.
    F1,F2 is used for
    the colunm reference when HDR=No.

    Again, google about schema.ini

  7. #7
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Distict StateWise and export Excel from Text file input

    but yesterday it worked

    ok i am going to google about schema.ini

  8. #8
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Distict StateWise and export Excel from Text file input

    Solved,
    for Schema.ini
    Please Login or Register  to view this content.
    and Query
    Please Login or Register  to view this content.
    Worked well Jindon Sir, thanks for co-operation and also nice to see you are helping me.
    wish you good health.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Displaying statewise Holiday list in excel file.
    By Nagato88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2014, 01:54 AM
  2. Input Text file Missing Delimiters after Export
    By karthik123qwe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-24-2012, 07:14 AM
  3. [SOLVED] Export Excel to Text File
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2012, 04:09 AM
  4. Export Excel records to seperate text file & compress it to protecte ZIP file
    By firedragon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2012, 10:47 AM
  5. Replies: 0
    Last Post: 07-20-2006, 12:00 PM
  6. [SOLVED] Export excel file to semicolon delimited text file
    By capitan in forum Excel General
    Replies: 5
    Last Post: 04-06-2005, 11:07 PM
  7. Export excel file to semicolon delimited text file
    By capitan in forum Excel General
    Replies: 5
    Last Post: 04-06-2005, 11:07 PM

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