본문 바로가기 메뉴 바로가기

Hello, Python

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Hello, Python

검색하기 폼
  • 분류 전체보기 (146)
    • Python (87)
      • tkinter (12)
    • Java (6)
      • Spring (1)
      • JPA (3)
    • MySQL (2)
    • Linux (19)
    • Virtualization (1)
    • Infra (1)
    • Network (1)
    • VBA(Excel) (19)
    • Apache (3)
    • html (1)
    • Windows (2)
    • 일상다반사 (2)
  • 방명록

동적배열 (1)
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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • JPA
  • command
  • Private
  • IdClass
  • Java
  • borderwidth
  • FetchType
  • vba
  • 리눅스
  • Excel
  • highlightthickness
  • 상수
  • Linux
  • 파이썬
  • activebackground
  • Module
  • apache
  • disabledforeground
  • Python
  • 폼
  • activeforeground
  • ManyToOne
  • indicatoron
  • Composite Key
  • tkinter command & bind [명령어묶기와 사건묶기] Python
  • highlightbackground
  • fetch join
  • onetomany
  • checkbutton
  • tkinter
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바