Ghi
Quyền truy cập vào trang này yêu cầu sự cho phép. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Quyền truy cập vào trang này yêu cầu sự cho phép. Bạn có thể thử thay đổi thư mục.
Returns a Range object representing the Total row, if any, from a specified ListObject object. Read-only.
Syntax
expression.TotalsRowRange
expression A variable that represents a ListObject object.
Example
The following sample code returns the address of the Total row in the default list on Sheet1 of the active workbook. The code displays the Total row if it is not displayed already.
Sub DisplayTotalsRowAddress()
Dim wrksht As Worksheet
Dim objListObj As ListObject
Set wrksht = ActiveWorkbook.Worksheets("Sheet2")
Set objListObj = wrksht.ListObjects(1)
objListObj.ShowTotals = True
MsgBox objListObj.TotalsRowRange.Address
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.