티스토리 뷰
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
- 정적배열
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 i
Dim r As Long
r = 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)' 카테고리의 다른 글
VBA(Excel), 데이터형식의 종류 (0) | 2016.05.02 |
---|---|
VBA(Excel), Type문 , 사용자정의형식 (0) | 2016.05.02 |
VBA(Excel), VBA용어정리 (0) | 2016.05.02 |
VBA(Excel), Const, 상수 (0) | 2016.05.02 |
VBA(Excel), Public,Static,Private (0) | 2016.05.02 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- activeforeground
- tkinter
- FetchType
- checkbutton
- vba
- 폼
- highlightbackground
- onetomany
- borderwidth
- highlightthickness
- Private
- apache
- Module
- activebackground
- Linux
- Python
- Composite Key
- Java
- indicatoron
- tkinter command & bind [명령어묶기와 사건묶기] Python
- Excel
- 리눅스
- 상수
- command
- disabledforeground
- IdClass
- fetch join
- JPA
- 파이썬
- ManyToOne
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함