[VBA] 엑셀 기본 저장 format 설정
·
[VBA]
엑셀의 파일 형식중 .xls, .xlsx 파일등을 번갈아가며 사용할 때 저장 형식을 지정해 주지 않으면 save나 saveas 명령어를 쓸 때 오류가 날경우가 있다. 그럴 경우를 방지하고자 앞에 기본 저장 설정을 해주는 것이 좋다. Sub 기본형식변경() Application.DefaultSaveFormat = 51 Debug.Print Application.DefaultSaveFormat '또는 Application.DefaultSaveFormat = xlWorkbookDefault Debug.Print Application.DefaultSaveFormat End Sub 앞에 기본으로 써주면 된다. 필자는 습관처럼 아래코드를 쓰고 시작한다. Sub 기본설정() Application.ScreenUpdat..