본문 바로가기

VBA

[VBA] 프로그래밍 기초 VBA 언어요소: 개관 (p.79) · 주석: '기호로 시작되는 줄 o Rem 키워드도 사용가능 · 한 줄에 복수의 명령문 사용시: 콜론(:)을 기호로 구분 · 줄 연결기호: 빈칸+밑줄 부호(_) · VBA변수는 대,소문자를 구분하지 않음 o Dim 등의 구문을 통해 선언된 변수의 경우 제외 · VBA 내장 데이터 형식 o Byte: 1바이트, 0~255까지숫자범위 o Integer: 2바이트, -32768~32,767까지숫자범위 o Boolean: True또는false 와같은논리형데이터형식 o Long: 4바이트, integer형보다더큰숫자범위를지정 o Single: 4바이트, 실수형표시 o Double: 8바이트, single보다더큰실수형수치범위를지정 o Currency: 8바이트, 정수형데이터표시 .. 더보기
[VBA] 간단한 소개 VBA에 대한 간단한 소개 (p.30) · VBA module은 procedure들로 구성 Sub Test() Sum = 1 + 1 MsgBox "The answer is " & Sum End Sub · 함수 procedure Function AddTwo(arg1, arg2) AddTwo= arg1 + arg2 End Function · 100개 이상의 조작가능한 클래스 개체를 제공 · 개체 클래스들은 계층화되어 있음 - object model Application Workbook Worksheet Range PivotTable Chart CommandBar · 유사한 개체들은 collection을 구성 · 개체참조 Application.Workbooks("Book1.xls") Application.Wo.. 더보기
MS Excel Object Model MS Excel Object Model Reference Information in Help Help for this object model is available in VBAXL10.CHM. Notes A single plus sign (+) designates objects with accessors to the ColorFormat object. A double plus sign (++) indicates that the ShapeRange objects have been omitted from this diagram. For general purposes, you can think of these objects as occupying the same positions as the Shape obj.. 더보기