배움 - 차근차근 기록하자/[개발] 파이썬 🍕
[파이썬] openpyxl 하이퍼링크 만들기
기능 openpyxl 패키지를 이용하여 엑셀에 하이퍼링크를 만들어준다. 셀 값이 폴더명일 때, 그 셀을 하이퍼링크로 만들어준다. 구현 user_path : 최상위 폴더 # 병합된 셀 구별 def parser_merged_cell(sheet: Worksheet, row, col): cell = sheet.cell(row=row, column=col) if isinstance(cell, MergedCell): # judge whether the cell is a merged cell for merged_range in ws.merged_cells.ranges: # loop to find the merge range to which the cell belongs if cell.coordinate in merg..
2022. 4. 25. 06:00