ListObject.ShowTotals 속성
Total 행이 표시되는지 여부를 나타내는 Boolean 형식을 가져오거나 설정합니다. 읽기/쓰기가 가능한 Boolean입니다.
Syntax
expression.ShowTotals
expression : ListObject 개체를 나타내는 변수입니다.
다음 코드는 요약 행을 표시합니다.
Sub ShowTableTotals()
Dim ws As Worksheet
Dim tbl As ListObject
Set ws = ThisWorkbook.Sheets("Sheet1")
Set tbl = ws.ListObjects("Product")
tbl.ShowTotals = True
End Sub
매크로 실행 후
도움말 출처
ListObject.ShowTotals property (Excel)
Office VBA reference topic
learn.microsoft.com
'ListObject object' 카테고리의 다른 글
ListObject.SourceType property (0) | 2024.03.06 |
---|---|
ListObject.ShowTableStyleRowStripes property (0) | 2024.03.04 |
ListObject.ShowTableStyleLastColumn property (0) | 2024.03.04 |
ListObject.ShowTableStyleFirstColumn property (0) | 2024.03.04 |
ListObject.ShowTableStyleColumnStripes property (0) | 2024.03.04 |