티스토리 뷰

다음은 전달 될 때 범위의 시트 이름을 반환합니다.

Public Function whichsheet(r1 As Range, r2 As Range) As String


If Application.Sum(r1) > 0 Then
    whichsheet = whichsheet & r1.Parent.Name
    
    End If
    
    If Application.Sum(r2) > 0 Then
        whichsheet = whichsheet & r2.Parent.Name
        
        End If
        
        End Function
        


출처
https://stackoverflow.com/questions/39920263
댓글
공지사항
Total
Today
Yesterday
«   2025/06   »
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