Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel data to txt 1

Status
Not open for further replies.

bobibob

Technical User
Jun 28, 2001
13
SI
Hi!

I have one txt file and I would like to write a macro which would add some cell values from excel to the end of this file.

Does anyone have any idea?

Thanks
 
Something like the following sequence would work:

open "MyFile.txt" for append as #1
print#1,range("thisvalue"),range("thatvalue")
close#1

Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top