Results 1 to 3 of 3

Export data from excel to text in a specific order

Threaded View

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    memphis, Tn
    MS-Off Ver
    Excel 2003
    Posts
    4

    Export data from excel to text in a specific order

    I need help. I am tring to export data from below to a text file. i have included the file and the code below is located in Module2.

    i need for the text file to loop through the part and date. I have selected the date range by varialbles and hidden the columns that didnt match the date range selected.

    for each part i need the part number, date, and qty.
    example
    0022-IB | 12/5/2010 | 4996
    0196-IB | 12/5/2010 | 10461
    0197-IB | 12/5/2019 | 8308
    0022-IB | 12/12/2010 | 4996
    0196-IB | 12/12/2010 | 10461
    0197-IB | 12/12/2019 | 8308
    0022-IB | 12/19/2010 | 4996
    0196-IB | 12/19/2010 | 10461
    0197-IB | 12/19/2019 | 8308
    0022-IB | 12/26/2010 | 4996
    0196-IB | 12/26/2010 | 10461
    0197-IB | 12/26/2019 | 8308

    Raw Data
    Part 12/5/2010 12/12/2010 12/19/2010 12/26/2010
    0022-IB 4996 4996 4996 4996
    0196-IB 10461 10461 10461 10461
    0197-IB 8308 8308 8308 8308

    Code for export.
    For Each Cell In rdate
       If LCase(Cell.Value).Hidden = False Then rdate2 = LCase(Cell.Value)
        For Each Row In part
         part2 = Row.Value
         Print #1, part2, rdate2
         Next Row
     Next Cell
     Close #1
    Last edited by daryllc; 01-01-2011 at 12:02 PM.

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