+ Reply to Thread
Results 1 to 4 of 4

Columns from Excel to Text file

  1. #1
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Columns from Excel to Text file

    Hi all,
    I need help in writing a macro, that retrives 2 column values from an excel sheet and write it as a text file.

    Any help will be helpful.
    Thanks in advance
    Last edited by vijay2482; 09-17-2009 at 07:24 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: Columns from Excel to Text file

    1) Copy the two column onto a new blank sheet
    Please Login or Register  to view this content.
    2) Save the sheet as text - Saving as text will only save the active sheet
    Please Login or Register  to view this content.
    A macro would need to know:
    a) What columns?
    b) What path to save files to?
    c) What naming system to use on the saved file?
    Last edited by JBeaucaire; 09-14-2009 at 10:32 AM.
    _________________
    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
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: Columns from Excel to Text file

    Thanks for the reply and code.
    I'm working on it.
    If found difficulty to sort the problem, will be back.

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

    Re: Columns from Excel to Text file

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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