Class UpBars (Word VBA)

The class UpBars represents the up bars in a chart group.

Set

To use a UpBars class variable it first needs to be instantiated, for example

Dim ubs as UpBars
Set ubs = ActiveDocument.Background.Chart.ChartGroups(1).UpBars

UpBars class variables can be set using the ChartGroup.UpBars procedure.

Border

Returns the border of the object.

Dim cbrBorder As ChartBorder
Set cbrBorder = ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Border

Delete

Deletes the object.

ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Delete

Fill

Returns a FillFormat object for the parent chart element that contains fill formatting properties for the chart element.

Dim As Variant
ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Fill

Format

Returns the line, fill, and effect formatting for the object.

Dim cftFormatted As ChartFormat
Set cftFormatted = ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Format

GetProperty

Syntax : expression.GetProperty (ID)

Interior

Returns the interior of the object.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.ChartGroups(1) 
 .HasUpDownBars = True 
 .DownBars.Interior.ColorIndex = 3 
 .UpBars.Interior.ColorIndex = 4 
 End With 
 End If 
End With

Name

Returns the name of the object.

Dim strName As String
strName = ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Name

Parent

Returns the parent for the specified object. Read-only object.

Dim objParent As Object
Set objParent = ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Parent

Select

Selects the object.

ActiveDocument.Background.Chart.ChartGroups(1).UpBars.Select

SetProperty

Syntax : expression.SetProperty (ID, Value)

Dim strID As String: strID =  
ActiveDocument.Background.Chart.ChartGroups(1).UpBars.SetProperty ID:=strID, Value:=

Arguments

The following arguments are required:

ID - String

Value