Solved

excel vba: export worksheet to text file

Posted on 2003-12-09
5
1,369 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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.
My experience with Windows 10 over a one year period and suggestions for smooth operation
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

770 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