컴파일러 오류:사용자 정의 유형이 정의되지 않았습니다. 다음 행에서 컴파일 시 오류 "User-defined types not defined"가 표시됩니다. Dim cn As ADODB.Connection 뭐가 잘못됐나요? 코드: Sub test() Dim cn As ADODB.Connection 'Not the best way to get the name, just convenient for notes strFile = Workbooks(1).FullName strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strFile & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";" Set cn = CreateO..