3. 매크로 함수 셀 너비 조절하기
간단하게 셀 높이를 바꾸는 매크로 함수를 작성하여 봅시다. Option Explicit DIm temp '셀 높이 지정하기 함수 Function RowHeighting(r1, r2, high As Integer) As Boolean If high > 100 Then Range(Cells(r1, 1), Cells(r2, 1)).Rows.AutoFit Else Range(Cells(r1, 1), Cells(r2, 1)).RowHeight = high End If End Function Sub Main() Sheets("Sheet1").Activate temp = RowHeighting(1, 5, 30) End Sub 프로그램 설명) Option Explicit '변수 선언을 하고 변수를 사용하도록 설정. D..
더보기