Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Open xlsx file in VB6

$
0
0
Hello,

we have process to monitor and reading the email attachment in xls format and converted into txt or csv file and store it in a system location.

Dim objWorkbook As excel.Workbook
Dim objWorkSheet As excel.Worksheet
Set objWorkbook = Workbooks.Open(filePath, 0, False, , , , True, , , True, False, , False)
excel.Application.Visible = False

by using the above code we were able to process "XLS" files but its not supporting the "XLSX" Files.

that is latest versions of microsoft office 2007.

as per our requirement we have to process the "XLSX" Files even ..

can anyone help out to do the same... how to convert the "xlsx" file into "XLS" using vb code and store it in the system location with out changing the original file name ..

we tried converting but getting error.

Please anyone provide the best solution...

Many thanks in advance....

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>