Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
riggi
 
Posts: n/a
Default ASCII files ...please help

Hello
I was wondering is it possible to save a cell value in a txt file and
plus specify which row and column you want to put that value in that
text file??


PS: I know how to save the worksheet as a text file.


Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default ASCII files ...please help

It depends on how you want your data in the text file formatted.
A simple way is

Open "H:\Test.txt" For Output As #1
Print #1, Range("A1").Value, Range("A1").Address
Close #1


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"riggi" wrote in message
oups.com...
Hello
I was wondering is it possible to save a cell value in a txt
file and
plus specify which row and column you want to put that value in
that
text file??


PS: I know how to save the worksheet as a text file.


Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
riggi
 
Posts: n/a
Default ASCII files ...please help

Yes sir, this is a simple way of doing it. But, what if I want to
specify that copy Range("A1").Value to for instance 7th row and 9th
column in that text file. Is it possible??

thanks, I really appreciate.


Riggi

  #4   Report Post  
Posted to microsoft.public.excel.misc
riggi
 
Posts: n/a
Default ASCII files ...please help

I guess using Tab function... right?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default ASCII files ...please help

You want to have more control on how you write the values to a text file??

Some sample code to get you started:

Earl Kiosterud's Text Write program:
www.smokeylake.com/excel
(or directly: http://www.smokeylake.com/excel/text_write_program.htm)

Chip Pearson's:
http://www.cpearson.com/excel/imptext.htm

J.E. McGimpsey's:
http://www.mcgimpsey.com/excel/textfiles.html

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

riggi wrote:

Yes sir, this is a simple way of doing it. But, what if I want to
specify that copy Range("A1").Value to for instance 7th row and 9th
column in that text file. Is it possible??

thanks, I really appreciate.

Riggi


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
riggi
 
Posts: n/a
Default ASCII files ...please help

Thanks. appreciate it!


Riggi



Dave Peterson wrote:
You want to have more control on how you write the values to a text file??

Some sample code to get you started:

Earl Kiosterud's Text Write program:
www.smokeylake.com/excel
(or directly: http://www.smokeylake.com/excel/text_write_program.htm)

Chip Pearson's:
http://www.cpearson.com/excel/imptext.htm

J.E. McGimpsey's:
http://www.mcgimpsey.com/excel/textfiles.html

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

riggi wrote:

Yes sir, this is a simple way of doing it. But, what if I want to
specify that copy Range("A1").Value to for instance 7th row and 9th
column in that text file. Is it possible??

thanks, I really appreciate.

Riggi


--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing read-write Excel 2003 files ttt8262 Excel Discussion (Misc queries) 0 April 1st 06 10:39 PM
Recently Used File List - 2002 Contains 'Temp' Files Keith972002 Excel Discussion (Misc queries) 0 July 26th 05 02:46 PM
merging my excel files Donna YaWanna Excel Discussion (Misc queries) 1 June 14th 05 01:53 AM
Cannot access read-only documents. tomgillane Excel Discussion (Misc queries) 14 February 7th 05 11:53 PM
multiple text files URGENT tasha Excel Discussion (Misc queries) 1 December 19th 04 06:44 PM


All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"