+ Reply to Thread
Results 1 to 2 of 2

Spreadsheet To Text File

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question Spreadsheet To Text File

    I'm running Windows XP Pro and MS Excel 2007. I have many spreadsheets that have nuggets of information. This problem will probably require the use of VBA. Would like to open a spreadsheet with data and a text file to copy to. Each spreadsheet has several hundred rows and about 120 columns of data. In column F of every spreadsheet I have integer numbers with 5 or 6 digits. In column CQ I have a comment in text. I would like to match the numbers in column F and whatever is programmed in VBA. If they agree, copy the date stamp to the text file, followed by a tab, then the contents of column F, another tab and then the contents of column CQ into the text file. I may have several rows to copy (several numbers from Column F).

    I can open the spreadsheet using VBA but to make the comparisons, copy and paste them into something like notepad is somewhat daunting for me. Your assistance here would save me several days worth of work on several hundred spreadsheets, one spreadsheet for everyday in 2009. My ultimate goal would be to have a complete text file with all the numbers and their associated comments for each spreadsheet in 2009. Tab separation would allow me to copy and paste back into Excel for use in another application.

  2. #2
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Akron, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: Spreadsheet To Text File

    Sounds a little involved and perhaps confusing; I'd attach a workbook with at least two worksheets in it. One showing the Raw data you want to import and the other showing the final output you desire.

    That will help you get faster, better responses.

+ 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