April 2006
Beginner
1114 pages
98h 16m
English
listobject.DataBodyRange
Returns the range of cells in the list that contain data. The returned range omits column headers and total rows. You can use DataBodyRange to format or select all of the items in a list, as shown here:
Sub FormatList( )
Dim ws As Worksheet, lst As ListObject
Set ws = ActiveSheet
Set lst = ws.ListObjects(1)
lst.DataBodyRange.Style.Font.Bold = True
lst.DataBodyRange.Activate
End SubYou can also use DataBodyRange to position other items relative to the list using the Range object’s End and Offset methods as shown in the SharePointURL example.
Read now
Unlock full access