>
> try this
> Sub create_txtfile()
>
> MyFile = "C:\Documents and Settings\achamanlalko\Desktop\ashish.txt"
> 'set and open file for output
> fnum = FreeFile()
> Open MyFile For Append As #1
> Write #1,
> For i = 3 To Sheets(1).Range("a65356").End(xlUp).Row
> 'Write #fnum,Sheets(1).Cells(i, 2).Value
> Print #1, Sheets(1).Cells(i, 2).Value
> Next i
> Close #fnum
> End Sub
>




>
> On Wed, Jun 15, 2011 at 6:37 PM, ruturaj patil 
> <ruturajpatil...@gmail.com>wrote:
>
>> Hello all,
>>             I have an excel sheet which contains 1000 entries with 5
>> columns.I want to take the second column out of this  but the thing is that
>> i want 150 entries to be fetched one at a time and these should be copied in
>> the text file.
>> Next it should take the next 150 entries and copy it in same text file
>> without overwriting the text file.Please do help me out. I am beginner
>> to development of macro and this macro development is urgent.I have attached
>> the excel sheet with this mail which can help you out understanding this
>> more.I need the 2nd column ie dataset name to be copied 150 entries at a
>> time in the text file.
>>
>> Regards,
>> *Ruturaj Patil*
>> *
>> *
>>
>> --
>>
>> ----------------------------------------------------------------------------------
>> Some important links for excel users:
>> 1. Follow us on TWITTER for tips tricks and links :
>> http://twitter.com/exceldailytip
>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
>> 3. Excel tutorials at http://www.excel-macros.blogspot.com
>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>>
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>> <><><><><><><><><><><><><><><><><><><><><><>
>> Like our page on facebook , Just follow below link
>> http://www.facebook.com/discussexcel
>>
>
>
>
> --
> *Regards*
> * *
> *Ashish Koul*
> *akoul*.*blogspot*.com <http://akoul.blogspot.com/>
> http://akoul.posterous.com/
> *akoul*.wordpress.com <http://akoul.wordpress.com/>
> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830>
>
>
> P Before printing, think about the environment.
>
>
>


-- 
*Regards*
* *
*Ashish Koul*
*akoul*.*blogspot*.com <http://akoul.blogspot.com/>
http://akoul.posterous.com/
*akoul*.wordpress.com <http://akoul.wordpress.com/>
My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830>


P Before printing, think about the environment.

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to