Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- PyQt5
- Linux
- tensorflow
- ubuntu
- flutter
- port
- 유니티
- IOS
- PER
- sqlite
- Excel
- pandas
- GIT
- 리눅스
- python
- mssql
- node.js
- 날짜
- 맛집
- ASP
- swift
- MS-SQL
- PyQt
- javascript
- 함수
- 다이어트
- Unity
- 라즈베리파이
- urllib
- MySQL
Archives
아미(아름다운미소)
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