Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
python excel 셀에 컬러 입히기 본문
python excel 셀에 컬러 입히기
# -*- coding: utf-8 -*- ''' Created on 2018. 9. 6. @author: bhm ''' import win32com.client excel = win32com.client.Dispatch("Excel.Application") excel.Visible = True wb = excel.Workbooks.Open('C:\\Users\\bhm\\Desktop\\input.xlsx') ws = wb.ActiveSheet ws.Cells(1,2).Value = "is" ws.Range("C1").Value = "good" ws.Range("C1").Interior.ColorIndex = 10 ws.Range("A2:C2").Interior.ColorIndex = 24 ws = wb.ActiveSheet excel.Quit()
'랭귀지 > python' 카테고리의 다른 글
python PyQt (0) | 2018.09.12 |
---|---|
python 엑셀(excel) 파일 읽기 (0) | 2018.09.11 |
python 엑셀(excel) 다루기 (0) | 2018.09.09 |
Python directory search and counting by specific extensions (0) | 2018.09.08 |
Python에서 확장자가 .wav .mp3 인 디렉토리의 모든 파일 찾기 (0) | 2018.09.07 |
Comments