+ Reply to Thread
Results 1 to 6 of 6

Export data in formatted plain text?

  1. #1
    Registered User
    Join Date
    06-05-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    24

    Export data in formatted plain text?

    Let's say I wanted to export some data into plaintext in a certain format. For example;

    [A1] {B1} (C1)
    [A2] {B2} (C2)
    [A3] {B3} (C3)


    Where A1, B1 etc would have their respective values of course. How would I go about doing that?

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Export data in formatted plain text?

    Post a dummy workbook, it will make it easier to make a suggestion.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    06-05-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Export data in formatted plain text?

    Here you go. How would I have the plain text equivalent in the format I posted in the first post?
    Attached Files Attached Files

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Export data in formatted plain text?

    Where are you exporting to? And I am not quite sure how you want the text to be formatted. Can you show a before and after?

  5. #5
    Registered User
    Join Date
    06-05-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Export data in formatted plain text?

    Anywhere even just a cell. It should be:

    "[1] {Cat} (435)
    [2] {Pizza} (24.2)
    [3] {Girl} (86)
    "

    Just that string in a single cell. But obviously it would be dynamic so it would update if I added another row to the table.

  6. #6
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Export data in formatted plain text?

    Ok, try this,
    Attached Files Attached Files
    Last edited by JapanDave; 12-18-2011 at 05:39 AM.

+ 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