VBA(Excel), 개체변수를 사용한 속도향상
test 1과 test2의 수행속도중 개체변수를 사용한 test2가 더 빠름Application.ScreenUpdating = False 를 사용하면 속도는 더욱 빨라짐Sub test1() Dim i& Dim st st = Timer For i = 1 To 10000 ThisWorkbook.Sheets(5).Range("A1").Value = i Next i MsgBox Format(Timer - st, "#0.000") End Sub Sub test2() Dim i& Dim st Dim cel As Range st = Timer Set cel = ThisWorkbook.Sheets(5).Range("A1") For i = 1 To 10000 cel.Value = i Next i MsgBox Format..
VBA(Excel)
2016. 5. 2. 10:43
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- IdClass
- 상수
- highlightthickness
- activebackground
- Private
- onetomany
- Linux
- ManyToOne
- activeforeground
- Python
- tkinter command & bind [명령어묶기와 사건묶기] Python
- checkbutton
- disabledforeground
- Java
- apache
- fetch join
- highlightbackground
- tkinter
- 리눅스
- Excel
- JPA
- Module
- vba
- FetchType
- indicatoron
- 파이썬
- Composite Key
- 폼
- borderwidth
- command
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함