_Application app; Worksheets sheets; Workbooks books; _Workbook book; // Start Excel and get Application object. if (!app.CreateDispatch("Excel.Application")) { uc1601("Couldn't start Excel and get Application object.",TRUE); pMainWnd->ShowWindow(TRUE); return; } //Get a new workbook. books = app.GetWorkbooks(); book = books.Open((LPCTSTR)strTargetPath, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional, covOptional); //Get the first sheet. sheets = book.GetSheets(); // ¿¢¼¿ ÇÏÀÌÆÛ¸µÅ© ¼Ó¼º ¼³Á¤ Hyperlinks hls(sheet.GetHyperlinks()); // ¸µÅ©ÇÒ ¼¿°ú CString cell; int cell_no = 1; cell.Format("A%d", cell_no); // A1 ¼¿À» ÀÇ¹Ì COleVariant vCell(cell); COleVariant vText(sheet.GetName()); COleVariant vMissing; vMissing.vt = VT_ERROR; vMissing.scode = DISP_E_PARAMNOTFOUND; // ÇÏÀÌÆÛ¸µÅ© ÁÖ¼Ò ¼³Á¤ CString link; link.Format("'%s10'!A1", "TEST"); // TEST10 ½ÃÆ® ÀÇ¹Ì COleVariant sub(link); //("'TEST'!A1"); hls.Add(sheet.GetRange(vCell, vMissing), file_name, sub, vMissing, vText);