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
- ubuntu
- mssql
- swift
- ASP
- MS-SQL
- 날짜
- port
- python
- 맛집
- PyQt
- javascript
- PER
- IOS
- urllib
- 다이어트
- Excel
- Unity
- GIT
- 리눅스
- 함수
- PyQt5
- flutter
- node.js
- tensorflow
- sqlite
- 라즈베리파이
- MySQL
- pandas
- 유니티
- Linux
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