Code VBA VStack
Code VBA VStack
TotalRows = 0: TotalCols = 0
TotalCols = Application.WorksheetFunction.Max(TotalCols,
r.Columns.Count)
Next r
rowOffset = 0
For i = 1 To r.Rows.Count
For j = 1 To r.Columns.Count
Next j
Next i
Next r
VSTACK = Result
End Function
_______________________________________________________________
' Inisialisasi
TotalRows = 0
TotalCols = 0
Set cellRange = r
currentRows = cellRange.Rows.Count
currentCols = cellRange.Columns.Count
TotalCols = Application.WorksheetFunction.Max(TotalCols,
currentCols)
Else
End If
Next r
VSTACK = CVErr(xlErrRef)
Exit Function
End If
rowOffset = 0
Set cellRange = r
currentRows = cellRange.Rows.Count
currentCols = cellRange.Columns.Count
For i = 1 To currentRows
For j = 1 To currentCols
Next j
Next i
End If
Next r
VSTACK = Result
End Function
' Inisialisasi
TotalRows = 0
TotalCols = 0
Set cellRange = r
currentRows = cellRange.Rows.Count
currentCols = cellRange.Columns.Count
Set tbl = r
currentRows = cellRange.Rows.Count
currentCols = cellRange.Columns.Count
Else
GoTo NextInput
End If
TotalCols = Application.WorksheetFunction.Max(TotalCols,
currentCols)
NextInput:
Next r
VSTACK = CVErr(xlErrRef)
Exit Function
End If
rowOffset = 0
Set cellRange = r
Set tbl = r
Set cellRange = tbl.DataBodyRange
Else
GoTo NextProcess
End If
currentRows = cellRange.Rows.Count
currentCols = cellRange.Columns.Count
For i = 1 To currentRows
For j = 1 To currentCols
Next j
Next i
NextProcess:
Next r
VSTACK = Result
End Function