Solved

excel vba: export worksheet to text file

Posted on 2003-12-09
5
1,358 Views
Last Modified: 2007-12-19
how do i export an excel worksheet to a text file?
0
Comment
Question by:yws812
  • 3
5 Comments
 
LVL 49

Accepted Solution

by:
sunray_2003 earned 50 total points
ID: 9903929
Hmm.. I thought there was an easier way than this.

anyway check this VBA code

http://www.cpearson.com/excel/imptext.htm

Sunray
0
 

Author Comment

by:yws812
ID: 9904062
sorry. didnt mean to put it as a VB question. just need to know where it is on the application toolbar
0
 
LVL 49

Expert Comment

by:sunray_2003
ID: 9904128
yws812,

I am not seeing any export function in toolbar ( may be I have to research more on that)
But when you save a worksheet do this .
go to file --> Save as
Give the file name and save as text file

Thanks,
Sunray
0
 
LVL 81

Expert Comment

by:byundt
ID: 9904212
Hi yws812,
Chip Pearson's code gives you control over the separator character--comma, semicolon, blank, tab, etc. between each successive cell.

If you don't need this control, then you can save as .csv or .txt file using the File...Save As dialog suggested by Sunray.

Cheers!

Brad
0
 
LVL 49

Expert Comment

by:sunray_2003
ID: 9904262
Thanks for the points

Thanks Brad for explaining

Sunray
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now