A collection of Discussion objects that represent discussions registered in the Microsoft Office host application.
Using the Discussions Collection
Use the OpenDiscussions method of the Global object to return the Discussions collection for the document accessed by the specified Uniform Resource Locator (URL). The following example returns the Discussions collection for the folder http://examples.microsoft.com.
Set dscDiscussions = _
OpenDiscussions("http://examples.microsoft.com")
Use the Add method to add a new Discussion object to the Discussions collection. The following example adds a new discussion response to the first Discussion object in the collection.
Set myResponse = dscDiscussions(1).Discussions.Add _
("Supply information", "Staples are here!", "Staples")
Use the URL property to return the URL for the document that contains the specified Discussions collection, As shown in the following example.
Dim dscDiscussions As Discussions
Set dscDiscussions = OpenDiscussions("http://samples.microsoft.com")
MsgBox dscDiscussions.URL
Use Discussions(Index), where Index is the index number of a discussion, to return a single Discussion object. The following example sets the variable dscOfficeSupplies
to the first discussion in the Discussions collection.
Set dscOfficeSupplies = dscDiscussions(1)