+ Reply to Thread
Results 1 to 1 of 1

Need to export to csv with a special condition

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    tampa
    MS-Off Ver
    Excel 2003
    Posts
    1

    Need to export to csv with a special condition

    Hi,
    I am trying to export a sheet to csv. Data looks somewhat like below.

    date 1/1/2010
    name account d/c client amount
    abc 123 c 12
    def 456 d 23
    ghi 789 c 4
    jkl 908 d 54
    mno 876 c 56
    trailer 999999

    I would like to export everything from the cell that states the date. (lets call it cell A1) down to the row that states trailer and over to the column that states amount.
    I have a macro that puts trailer and 999999 after the last row of data.so in short i would like a macro that would select from A1 then look for trailer, go to that row that contains trailer and select all the way over to the amount column and export that block of data to csv. Iam attaching an example file. Would greatly appreciate some help.

    i have used the following code but it does not work with my current requirement of changing last rows.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Leith Ross; 03-23-2010 at 12:07 AM. Reason: Added Code Tags

+ 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