+ Reply to Thread
Results 1 to 3 of 3

export specific cells to several text files

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    NL
    MS-Off Ver
    365
    Posts
    2

    export specific cells to several text files

    Hi,

    I know my way in Excel but I am a complete newby in VBA! I am looking for a solution to export a number of cells to a specific text file. Attached a short version of the data, the total file contains about 19.000 data fields.

    I want to export the [data] to the specified folders and files. i.e. folder 1 - file A would contain the following data:

    [data] :: this field is required in each file
    1=230
    2=230
    10=230
    <empty line required>

    Each time the cell starts with 1, the file changes, the folder changes whenever there are 12 files completed, so files A thru L.
    If the file exists, it should be overwritten or the data should be replaced with the new data.

    I hope you guys can help me to solve this, because that would save me a lot of time...

    Thanks!
    Attached Files Attached Files
    Last edited by BSJ; 02-01-2013 at 04:17 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: export specific cells to several text files

    Post the resulting txt files expected from that dataset so we can truly see the results.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-01-2013
    Location
    NL
    MS-Off Ver
    365
    Posts
    2

    Re: export specific cells to several text files

    Text file A.txt should be written to folder 1, text file B.txt to folder 2.

+ Reply to Thread

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