+ Reply to Thread
Results 1 to 2 of 2

Import text file and create new spreadsheet

Hybrid View

  1. #1
    Registered User
    Join Date
    07-28-2005
    Posts
    3

    Question Import text file and create new spreadsheet

    Hi all !

    First, I would like to say I'm a VBA novice, I'm not a programmer. I really don't know how to do the following question:

    I have a large CSV file, in alphabetical order, with hundreds (maybe thousands) of lines (for example, a catalog from a shoes shop). I need to import this file to Excel and every time the name of each manufacturer changes (the first column in CSV file), a new sheet must be created and the name "SheetX" (Sheet1, Sheet2, etc...) must be renamed with the name of the manufacturer. How can I do this using a VBA Macro ? Please, help me !

    It's something like:
    • Read the first line;
    • Rename Sheet1 to manufacturer's name;
    • Fill the cells with all content from the manufacturer's name;
    • When read a new manufacturer's name:
    • Rename Sheet2 to manufacturer's name;
    • Fill the cells with all content from the manufacturer's name;
    • repeat until EOF.


    Please, help me !
    Thanks a lot !!

    Demian.

  2. #2
    Tom Ogilvy
    Guest

    RE: Import text file and create new spreadsheet

    If you don't get an answer, you can send me a sample textfile to
    twogilvy@msn.com

    and I will write something for you.

    --
    Regards,
    Tom Ogilvy


    "demianill" wrote:

    >
    > Hi all !
    >
    > First, I would like to say I'm a VBA novice, I'm not a programmer. I
    > really don't know how to do the following question:
    >
    > I have a large CSV file, in alphabetical order, with hundreds (maybe
    > thousands) of lines (for example, a catalog from a shoes shop). I need
    > to import this file to Excel and every time the name of each
    > manufacturer changes (the first column in CSV file), a new sheet must
    > be created and the name "SheetX" (Sheet1, Sheet2, etc...) must be
    > renamed with the name of the manufacturer. How can I do this using a
    > VBA Macro ? Please, help me !
    >
    > It's something like:
    >
    >
    > - Read the first line;
    > - Rename Sheet1 to manufacturer's name;
    > - Fill the cells with all content from the manufacturer's name;
    > - When read a new manufacturer's name:
    > - Rename Sheet2 to manufacturer's name;
    > - Fill the cells with all content from the manufacturer's name;
    > - repeat until EOF.
    >
    >
    >
    > Please, help me !
    > Thanks a lot !!
    >
    > Demian.
    >
    >
    > --
    > demianill
    > ------------------------------------------------------------------------
    > demianill's Profile: http://www.excelforum.com/member.php...o&userid=25676
    > View this thread: http://www.excelforum.com/showthread...hreadid=544815
    >
    >


+ Reply to Thread

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