Another way, little longer in code :D and just a little faster
I'am using manual method, fist, openit as textfile and split by delimiter, then copy each column to specified destination

in attached sample with 500k row data, can processed in 2,6 seconds @ my old comp



On 09-10-2013 13:13, Anoop K Sharma wrote:
Hi Sonika,

PFA, You can browse the text file you want to store in Excel.. This program runs for 3 separated value..

Just open the Excel file, click on button, browse the text file.

Regards,
Anoop
Sr. Developer


On Wed, Oct 9, 2013 at 11:08 AM, rani <gupta.sonik...@gmail.com <mailto:gupta.sonik...@gmail.com>> wrote:

    hi

    On Monday, November 5, 2007 11:52:56 PM UTC+5:30, SK wrote:

        Hello Everybody,

        I am new to Excel VBA. I am trying to read a text file in which
        columns are separated by commas, for eg:

        1,2,3
        2,3,4
        3,4,5
        4,5,6

        I canwrite this to an Excel worksheet. So, final Excel sheet has 3
        columns and 4 rows(number of rows depends on on how many
        entries we
        have in a text file). So the worksheet will look like:

        1 | 2 | 3
        2 | 3 | 4
        3 | 4 | 5
        4 | 5 | 6

        If I specify the range of the cells for example B9, my first
        column
        starts from B9, second from C9 and thrid from D9. I want to do
        something different. I want to have different range set for
        diffferent
        column.
        Can I specify that the first column should populate in range
        B9:Bx((where x is the number of rows in the text file) and second
        coulmn populate in range G9:Gx(where x is the number of rows
        in the
        text file) and third column populates in range I9:Ix((where x
        is the
        number of rows in the text file).

        Thanks for your help in advance.
        ~SK

-- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna
    be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this
    forum @ https://www.facebook.com/discussexcel

    FORUM RULES

    1) Use concise, accurate thread titles. Poor thread titles, like
    Please Help, Urgent, Need Help, Formula Problem, Code Problem, and
    Need Advice will not get quick attention or may not be answered.
    2) Don't post a question in the thread of another member.
    3) Don't post questions regarding breaking or bypassing any
    security measure.
    4) Acknowledge the responses you receive, good or bad.
    5) Jobs posting is not allowed.
    6) Sharing copyrighted material and their links is not allowed.

    NOTE : Don't ever post confidential data in a workbook. Forum
    owners and members are not responsible for any loss.
    ---
    You received this message because you are subscribed to the Google
    Groups "MS EXCEL AND VBA MACROS" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to excel-macros+unsubscr...@googlegroups.com
    <mailto:excel-macros%2bunsubscr...@googlegroups.com>.
    To post to this group, send email to excel-macros@googlegroups.com
    <mailto:excel-macros@googlegroups.com>.
    Visit this group at http://groups.google.com/group/excel-macros.
    For more options, visit https://groups.google.com/groups/opt_out.




--
Regards,
Anoop
Sr. Developer
Facebook ID - https://www.facebook.com/anooop.k.sharma
--
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss.
---
You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

--
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

<<inline: bajajhia.png>>

Attachment: Sonika.rar
Description: Binary data

Reply via email to