Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 06-26-2009, 05:44 PM
vinaynagasani vinaynagasani is offline
Registered User
 
Join Date: 26 Jun 2009
Location: US
MS Office Version:Excel 2003
Posts: 7
vinaynagasani is becoming part of the community
Macro to copy a column data to flat file or text file

Please Register to Remove these Ads

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
Reply With Quote
  #2  
Old 06-26-2009, 06:50 PM
shg's Avatar
shg shg is online now
Forum Guru
 
Join Date: 21 Jun 2007
Location: The Great State of Texas
MS Office Version:2003, 2007
Posts: 17,881
shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay shg makes giving solutions look like childsplay
Re: Macro to copy a column data to flat file or text file

A particular text file?

Data limited in what fashion?
__________________
Entia non sunt multiplicanda sine necessitate.
Reply With Quote
  #3  
Old 07-01-2009, 11:20 AM
vinaynagasani vinaynagasani is offline
Registered User
 
Join Date: 26 Jun 2009
Location: US
MS Office Version:Excel 2003
Posts: 7
vinaynagasani is becoming part of the community
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.
Reply With Quote
  #4  
Old 07-01-2009, 11:56 AM
vinaynagasani vinaynagasani is offline
Registered User
 
Join Date: 26 Jun 2009
Location: US
MS Office Version:Excel 2003
Posts: 7
vinaynagasani is becoming part of the community
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
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump