473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Convert the excel file as text file

6
With the below code, I could able to save the excel file as Text file. But in the text file so generated, there will be "#####" marks after each row. Please let me know how to get rid of this..

Private Sub cmdtxt_Click()
Dim wb As Workbook
If txt1.Value = "" Then
MsgBox "Please browse the file first!", vbOKOnly, "Error"
cmdbrowse.SetFocus
Else
Set wb = Workbooks.Open(txt1.Value)
Application.DisplayStatusBar = True
Application.StatusBar = "Loading..."
ActiveWorkbook.SaveAs Filename:=Application.GetSaveAsFilename(FileFilter :="Text Files (*.txt), *.txt", Title:="EmpMast"), FileFormat:=xlText, CreateBackup:=False
Application.StatusBar = False
MsgBox "CSV file has been created successfully", , "Success!!!"
Dim wbc As Workbook
Application.ScreenUpdating = False
For Each wbc In Workbooks
wb.Close savechanges:=True
Next wbc
Application.Quit
End Sub
Jul 11 '18 #1
0 1335

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jamie | last post by:
A B C D E F G H I J K L M N O P Q R insert into test (building,dep,owner,pcdesc,host,pctag,os,sp) values (' A ,' Catering ,' User 3 ,' EVO N410 ,' PC24346 ,' TAG-24346 ,' WIN 2000 ,' 4 ); insert...
1
by: rama | last post by:
I need to convert excel file to txt file programatically which may contain 60000 records i want to convert it into txt file and upload it into unix server thanks in advance rama
1
by: Arvind P Rangan | last post by:
Hi, Trying to convert excel file data to base64 for encryption. Can anyone help me on this. Thanks Arvind
2
by: noopathan | last post by:
Hi experts , I have an excel file in the below format --------------------------------------------------------------------- CodeID CodeName Market Name Date...
0
by: Juliano.net | last post by:
Does anyone know a control or library that allows the conversion from Excel 2003 XML file to Excel 97 format? Or a freeware that makes this work?
10
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
i want to convert excel into pdf file,i had lot ofoptions to convert all free trials i tried but nothing is supporting hyperlinks can any one help me with the useful URL thanks
2
kamill
by: kamill | last post by:
I need to convert excel file into PDF file using PHP, how can i do it. I am able to generate a pdf file. Is there any solution to export excel data into mysql database? I am waiting for help.
2
by: vinitaJ | last post by:
hi i need to convert a excel sheet to mysql database format using php code.I am not getting any help on the net on this topic.I need the code not an autogeneration tool.If any of you can solve the...
2
by: vasanth chandrasekaran | last post by:
Hai All, I try to insert the Dataset value in Exiting excel file by using OLEDB provider.But i face error messagge in objCmd.ExecuteNonQuery(); The error is :Syntax error in INSERT...
3
by: saurabh9gupta | last post by:
Hello. I have two files . One is Excel file and the other is XML file. I need to copy the data present in them into the SQL Server Database. Any idea on how to proceed on this?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.