+ Reply to Thread
Results 1 to 7 of 7

Writing results to a text file

Hybrid View

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    Gold Coast, Australia
    MS-Off Ver
    2007
    Posts
    14

    Writing results to a text file

    Hello,

    I'm trying to do something very simple, but I haven't had any luck searching for a function in excel that will let me do it.

    Column A is a list of directories on a server, i.e. 01april, 02april, etc.
    Column B is the path to those main directories, i.e. /raid0/data/documents/april/
    Column C is where users can can type "1" if they want the directory or leave it blank if they do not want it selected.
    Column D, if the corresponding row in column C=1, will show the complete source path/filename based on Column A and Column B.
    Column E, if the corresponding row in column C=1, will show the complete destination path/filename based on Column A and Column B.

    This is all working fine.

    What I want to be able to do now though, is somehow, when someone sends the document back to me, create an FTP queue. I can do this with BulletProof FTP, because it allows really simple text queues.

    So, what I need excel to do is, when someone has finished selecting their files, is write the results to a text file like exactly like this (without the Line1:, etc.):

    Line1: <text from D2>
    Line2: 0
    Line3: 0
    Line4: 0
    Line5: ?
    Line6: <text from E2>
    (then repeated for each row in the excel document until column A is returning blank)

    Seems simple enough.. Any ideas?

    Also, an extra question--> is there any way I can make Excel list a directory structure automatically? Could it display the file size for the entire directory? I don't necessarily want it to list every file, just the directory paths and size of each directory.

    Thank you!
    Last edited by cameronyoung; 06-22-2009 at 10:54 AM.

  2. #2
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Writing results to a text file

    Cameronyoung,

    I have a solution for both of your issues, however it would make things easier if you could state which version of excel you are using?

    Teshi

  3. #3
    Registered User
    Join Date
    07-10-2008
    Location
    Gold Coast, Australia
    MS-Off Ver
    2007
    Posts
    14

    Re: Writing results to a text file

    Sorry about that, I'm using Office 2007. Though I do have a copy of Office 2003 if your solution is for that version. Thank you!

  4. #4
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Writing results to a text file

    My Solution is for every version, the only issues is that '07 cannot support one of the functions, i will put my solution up today for you

    Teshi...

  5. #5
    Registered User
    Join Date
    07-10-2008
    Location
    Gold Coast, Australia
    MS-Off Ver
    2007
    Posts
    14

    Re: Writing results to a text file

    Great, I'm really looking forward to a solution.

    Would be great if you could solve my directory listing / directory size problem too; would basically make the whole thing fully automatic.

  6. #6
    Registered User
    Join Date
    07-10-2008
    Location
    Gold Coast, Australia
    MS-Off Ver
    2007
    Posts
    14

    Re: Writing results to a text file

    Quote Originally Posted by teshiburu1988 View Post
    My Solution is for every version, the only issues is that '07 cannot support one of the functions, i will put my solution up today for you

    Teshi...
    Hey Teshi can you please post your solution?

  7. #7
    Registered User
    Join Date
    07-10-2008
    Location
    Gold Coast, Australia
    MS-Off Ver
    2007
    Posts
    14

    Re: Writing results to a text file

    Is there a function for sarcasm? Thanks Teshi.

    SOLUTION TO THE PROBLEM IS HERE: http://www.excelforum.com/excel-prog...text-file.html

+ 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