+ Reply to Thread
Results 1 to 11 of 11

collect data and place in text file.

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    7

    Question collect data and place in text file.

    This was end product. Thanks to T-J and MickG. If someone could please annotate the code to explain the workings and how it all fits together, their time will be much appreciated.
    Thanks in advance.

    Please Login or Register  to view this content.

    ----------------

    Hi, I needed a macro that would collect the information in e.g. cell A1 and C3 and place it into a text file.

    Thanx to MickG,
    Please Login or Register  to view this content.
    I now see that it would also help me if a new file was created instead of using an exsiting one.

    +Plz, if the new file could be named after the contents of D8, or (8, 4) as Mick puts it.

    So if Cell D8 contained "inkypoo". A .txt file would be created in "C:\" called "inkypoo.txt" and contain the contents of e.g. cell A1 and C3

    or.. as it finally turned out:

    Please Login or Register  to view this content.
    Tank you.
    Last edited by Stone Cold; 03-30-2008 at 03:55 AM. Reason: New problem

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Will the macro be using an existeng text file or creating a new file

    If using an existing file where will ot be adding the data within the file & will it be replacing existing data within the file
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    XLForum_Stone Cold_Need to collect data and place in text file.
    --------------------------------------
    Hi, Here's a starting point.
    The File "mick.txt" is a "Notpad" file save on the Desktop
    Mod the code to suit:-

    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    03-26-2008
    Posts
    7

    Smile Thanx

    Thanks alot, can anyone help me with naming the file using the contents of cell D8?
    Last edited by Stone Cold; 03-27-2008 at 07:53 AM.

  5. #5
    Registered User
    Join Date
    03-26-2008
    Posts
    7
    Bump - Read first post.

  6. #6
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388
    Quote Originally Posted by Stone Cold
    +Plz, if the new file could be named after the contents of D8, or (8, 4) as Mick puts it.

    So if Cell D8 contained "inkypoo". A .txt file would be created in "C:\" called "inkypoo.txt" and contain the contents of e.g. cell A1 and C3

    or.. as it finally turned out:

    Please Login or Register  to view this content.
    Tank you.
    Use a subroutine that takes arguments (Range of cells to output and the Filename) to give more flexibility.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-26-2008
    Posts
    7
    THANK YOU SO!!! MUCH. You're help has really been appreciated, not forgetting MickG either. Thanks to both of u.

  8. #8
    Registered User
    Join Date
    03-26-2008
    Posts
    7
    This was end product. Thanks to T-J and MickG. If some could please annote the code to explain the workings and how it all fits together, their time will be much appreciated.
    Thanks in advance.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-26-2008
    Posts
    7
    Bump -- Read first post.

  10. #10
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    this is from your 1st post in this thread

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    03-26-2008
    Posts
    7

    Talking

    Thanks MUDRAKER, thanks alot.

+ 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