+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Macro to copy a column data to flat file or text file

    Hello Friends
    Please can any one help me in writing a macro, which will copy the column data to a text file or flat file, by giving a column name as an input to macro.
    i.e. macro [columnname] - it should write that particular columnname to a text file.
    Please give some inputs
    Thanks
    vinay

  2. #2
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,126

    Re: Macro to copy a column data to flat file or text file

    A particular text file?

    Data limited in what fashion?
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-26-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Macro to copy a column data to flat file or text file

    As we run the macro, with column name as its input parameter, the contents of that column name should write to a regular text file.

  4. #4
    Registered User
    Join Date
    06-26-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Macro to copy a column data to flat file or text file

    I want the data to be copied as it is, before it was in Excel sheet
    lets say
    My column A has following data
    Column A
    Peter
    Sam
    Victor
    Nancy

    Now when i run the Macro, i e, it should copy the above data into a regular text file
    Run Macro A (columnname as input to my macro)
    Now the text file should contain the above data
    Peter
    Sam
    Victor
    Nancy

    Hope you understand
    Thanks
    vinay

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.2.0