1. 아별툴
  2. 아별툴 패밀리
  3. 엑셀 질문하기
  4. 엑셀 강좌
  5. 엑셀 팁
  6. 엑셀 자료실
  7. 엑셀 연구과제
  8. 엑셀 북마크
  9. 관련 프로그램 소개

[엑셀VBA] 변수의 전달

조회 수 4589 추천 수 6 2005.05.13 13:42:38

=========================== 1 - 1 ========================================

Dim currentWindowCaption As String

Sub 입력작업()

currentWindowCaption = ActiveWindow.Caption

    Sheets("매출표").Select
    
    Application.Goto Sheets("매출표").Range("B" & Sheets("매출표").Range("B65536").End(xlUp).Row + 1)
    
    mcInputForm.Show
    
    mcInputForm.Top = 0
    mcInputForm.Left = 350

매출표문서인지확인하기2 (currentWindowCaption) '******************************** 매출표문서인지확인하기

End Sub

=========================== 1 - 2 ========================================

Sub 매출표문서인지확인하기2(ByVal currentWindowCaption As String)

    On Error GoTo a:
    
    Windows(currentWindowCaption).Activate


        If (0) Then
a:          End
        End If
        
End Sub

=========================== 2 - 1 ========================================

Private Sub mc제품필터링하기(ByVal 필터링할제품명 As String)
    매출표보기 (1)
    Range("B2").Select
    Selection.AutoFilter Field:=3, Criteria1:=mcCombo1
스크롤업하기
End Sub

=========================== 2 - 1 ========================================

Sub 매출표보기(ByVal View_type As Integer)

매출표문서인지확인하기1 '******************************** 매출표문서인지확인하기

    On Error GoTo MC_error:

If (View_type <> 1) Then

    입력창숨기기    '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    
Else

    Application.Goto Sheets("매출표").Range("B" & Sheets("매출표").Range("B65536").End(xlUp).Row + 1)
End If
    
    
        If (0) Then
MC_error:   MsgBox "에라났음ㅠ_ㅠ매출표보기에서", , "에라 창"
        End If
        
End Sub
문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 기타 엑셀 VBA 간단한 팁 모아놓기.. +_+ [레벨:30]아별 2007-01-24 34085