엑셀 VBA 두개의 시트를 비교하여, 그 결과를 새로운 파일을 생성하여 기록해주는 매크로 함수(비주얼 베이직, 매크로, 시트 비교)
Sub CompareWorksheets(ws1 As Worksheet, ws2 As Worksheet)Dim r As Long, c As IntegerDim lr1 As Long, lr2 As Long, lc1 As Integer, lc2 As IntegerDim maxR As Long, maxC As Integer, cf1 As String, cf2 As StringDim rptWB As Workbook, DiffCount As Long Application.ScreenUpdating = False Application.StatusBar = "리포트 생성..." Set rptWB = Workbooks.Add Application.DisplayAlerts = False Whil..