VAB(Excel), 정적배열, 동적배열, Redim
- 정적배열 Sub Macro1() Dim i, t ReDim i(0 To 10) ReDim t(10) End Sub > 타입은 선언하지 않으면 기본값인 Variant이며[start] To [end] 값을 가진다.t 에서처럼 10만 썻을경우 0 to 10이 된다. - 동적배열Sub Macro1() Dim iDim r As Longr = r + 1 ReDim i(0 To r) ReDim Preserve i(0 to r) End Sub - ReDim문변수를 재할당ReDim [Preserve] [변수]([Start] To [End])>Preserve 를 선언해주면 변수의 배열 변경시 기존값을 유지한채 배열을 증가시킴# [start]값을 변경시 오류 발생
VBA(Excel)
2016. 5. 2. 10:42
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- IdClass
- indicatoron
- command
- apache
- Private
- onetomany
- activeforeground
- checkbutton
- JPA
- Composite Key
- Java
- 폼
- fetch join
- tkinter command & bind [명령어묶기와 사건묶기] Python
- borderwidth
- 파이썬
- highlightthickness
- Python
- disabledforeground
- tkinter
- FetchType
- ManyToOne
- Module
- Linux
- activebackground
- 상수
- vba
- Excel
- 리눅스
- highlightbackground
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함