17 lines
606 B
Python
17 lines
606 B
Python
def extract_all_contents(file_path):
|
|
print(f"로그: 파일을 읽는 중입니다 (전체 내용 모드)...")
|
|
# 수식과 값을 동시에 비교하기 위해 data_only=False로 로드
|
|
wb = openpyxl.load_workbook(file_path, data_only=False)
|
|
|
|
all_content_data = []
|
|
|
|
for sheet_name in wb.sheetnames:
|
|
ws = wb[sheet_name]
|
|
print(f"\n" + "="*60)
|
|
print(f"▶ 시트 탐색 중: [ {sheet_name} ]")
|
|
print("="*60)
|
|
|
|
# 시트의 모든 셀을 하나하나 검사
|
|
for row in ws.iter_rows():
|
|
for cell in row:
|
|
value = ce |