GroupBoxes Method

Applies To

Chart Object, DialogSheet Object, Worksheet Object.

Description

Accessor. Returns an object that represents a single group box control (a GroupBox object, Syntax 1) or a collection of group box controls (a GroupBoxes object, Syntax 2) on the sheet.

Syntax 1

object.GroupBoxes(index)

Syntax 2

object.GroupBoxes

object

Required. The Chart, DialogSheet, or Worksheet object.

index

Required for Syntax 1. Specifies the name or number of the group box (can be an array to specify more than one).

Example

This example sets the title for group box one on Dialog1.


DialogSheets("Dialog1").GroupBoxes.Text = "Choose one"