Dim objXLApp, objXLWb, objXLWs Dim cellValue Dim outFile Dim row,col Set objXLApp = CreateObject("Excel.Application") objXLApp.Visible = True Set objXLWb = objXLApp.Workbooks.Open("D:\1.xlsx") '~~> Working with Sheet1 Set objXLWs = objXLWb.Sheets(1) Set objFSO=CreateObject("Scripting.FileSystemObject") outFile="D:\connect.txt" Set objFile = objFSO.CreateTextFile(outFile,True) With objXLWs For row =2 To 463 objFile.Write "BEGIN:VCARD" & vbCrLf objFile.Write "VERSION:3.0" & vbCrLf objFile.Write "FN;CHARSET=UTF-8:" cellValue = .Cells(row,5).Value objFile.Write cellValue & vbCrLf objFile.Write "N;CHARSET=UTF-8:" cellValue = .Cells(row,5).Value objFile.Write cellValue & vbCrLf objFile.Write "TEL;TYPE=CELL:" cellValue = .Cells(row,41).Value objFile.Write cellValue & vbCrLf objFile.Write "END:VCARD" & vbCrLf Next objFile.Close End With '~~> Save as Excel File (xls) to retain format 'objXLWb.SaveAs "D:\new.xls", 56 '~~> File Formats '51 = xlOpenXMLWorkbook (without macro's in 2007-2010, xlsx) '52 = xlOpenXMLWorkbookMacroEnabled (with or without macro's in 2007-2010, xlsm) '50 = xlExcel12 (Excel Binary Workbook in 2007-2010 with or without macro's, xlsb) '56 = xlExcel8 (97-2003 format in Excel 2007-2010, xls) objXLWb.Close (False) Set objXLWs = Nothing Set objXLWb = Nothing objXLApp.Quit Set objXLApp = Nothing