컴퓨터관련
엑셀 vba saveas fileformat...펌
맘편한넘
2010. 11. 30. 21:12
엑셀 매크로의 SaveAs 메소드를 사용해 다른 형식으로 저장하려다보면 약간의 문제가 발생한다.
그것은 파일 형식인데, 일단 .xlsx냐 .xls냐에서부터 .csv, .txt, .prn 등 여러가지 형식이 있다.
이걸 매번 검색해서 찾으려니 귀찮아서 이곳에 옮겨 놓는다.
그리고 헷갈리는 부분도 있기에(특히 prn) 확실히 정리해두고자 한다.
SaveAs FileFormat:=xlTextPrinter
xlFileFormat 의 값들.
Member name | Description |
---|---|
xlAddIn | Microsoft Office Excel Add-In. |
xlCSV | Comma separated value. |
xlCSVMac | Comma separated value. |
xlCSVMSDOS | Comma separated value. |
xlCSVWindows | Comma separated value. |
xlCurrentPlatformText | Specifies a type of text format |
xlDBF2 | Dbase 2 format. |
xlDBF3 | Dbase 3 format. |
xlDBF4 | Dbase 4 format. |
xlDIF | Data Interchange format. |
xlExcel2 | Excel version 2.0. |
xlExcel2FarEast | Excel version 2.0 far east. |
xlExcel3 | Excel version 3.0. |
xlExcel4 | Excel version 4.0. |
xlExcel4Workbook | Excel version 4.0. Workbook format. |
xlExcel5 | Excel version 5.0. |
xlExcel7 | Excel 95. |
xlExcel9795 | Excel version 95 and 97. |
xlHtml | Web page format. |
xlIntlAddIn | Microsoft Office Excel Add-In international format. |
xlIntlMacro | Deprecated format. |
xlSYLK | Symbolic link format. |
xlTemplate | Excel template format. |
xlTextMac | Specifies a type of text format. |
xlTextMSDOS | Specifies a type of text format. |
xlTextPrinter | .prn 형식 (공백으로 데이터 분리) |
xlTextWindows | Specifies a type of text format. |
xlUnicodeText | Specifies a type of text format. |
xlWebArchive | MHT format. |
xlWJ2WD1 | Deprecated format. |
xlWJ3 | Deprecated format. |
xlWJ3FJ3 | Deprecated format. |
xlWK1 | Lotus 1-2-3 format. |
xlWK1ALL | Lotus 1-2-3 format. |
xlWK1FMT | Lotus 1-2-3 format. |
xlWK3 | Lotus 1-2-3 format. |
xlWK3FM3 | Lotus 1-2-3 format. |
xlWK4 | Lotus 1-2-3 format. |
xlWKS | Lotus 1-2-3 format. |
xlWorkbookNormal | Excel workbook format. |
xlWorks2FarEast | Microsoft Works 2.0 format |
xlWQ1 | Quattro Pro format. |
xlXMLSpreadsheet | Excel Spreadsheet format. |
xlOpenXMLWorkbookMacroEnabled(추가) | Excel 매크로 사용 통합 문서(.xlsm) |