Solved

excel vba: export worksheet to text file

Posted on 2003-12-09
5
1,337 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
Comment Utility
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
Comment Utility
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
Comment Utility
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 80

Expert Comment

by:byundt
Comment Utility
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
Comment Utility
Thanks for the points

Thanks Brad for explaining

Sunray
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction Perhaps more familiar to developers who primarily use VBScript than to developers who tend to work only with Microsoft Office and Visual Basic for Applications (VBA), the Dictionary is a powerful and versatile class, and is useful …
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
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 …

762 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

6 Experts available now in Live!

Get 1:1 Help Now