Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default macro for converting text file to excel

Possibly:

Thisworkbook.SaveAs Filename:="filename", FileFormat:=xlCSV

set the FileFormat to the appropriate supported type.
Help on FileFormat in the VBE has the supported constants.

Being successful would depend on how Excel interprets our file when it is
opened and how it manages it on saving.

If everything is placed in one column on opening, then doing a saveas with a
different format probably won't have much of an effect. You might need to
record opening the file using the text import wizard. I assume you want to
process many files - so this would be effective if they are all in the same
current format.

--
Regards,
Tom Ogilvy


"Venod" wrote in message
...
Hi,

Can I convert my text files to a specific format in excel without

adjusting
manually ( Using a Macro )

Regards,

Venod.R.G




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
Converting excel 2007 to tab delimeter text file Naresh kumar Excel Discussion (Misc queries) 1 March 27th 10 03:56 PM
Text Import Wizard, Step 3 (converting .tsv file to Excel) Eve Excel Worksheet Functions 2 July 21st 07 04:06 PM
Converting Excel file to text delimited file Kiran Veeramallu[_2_] Excel Discussion (Misc queries) 3 May 1st 07 07:04 PM
Converting Excel data into semicolon delimited text file danmcgov Excel Discussion (Misc queries) 1 April 14th 05 04:30 PM
macro for converting text file to excel tomhaddock[_3_] Excel Programming 0 September 5th 03 11:40 AM


All times are GMT +1. The time now is 05:00 AM.

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

About Us

"It's about Microsoft Excel"