• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 44. Managing Webs with VBA > Collections in the Context of the WOM

Collections in the Context of the WOM

In Chapter 43, "Introduction to Programming with Visual Basic for Applications," you learned that the Page Object Model grouped related objects into their own type of object, the collection. The WOM exposes collections as well. Groups of web sites, HTML files, and Folders in a web site are all exposed in their own collections.

WOM Collections work the same way as POM collections for the most part. Both are zero based and both use the Item property to get at the elements contained in the collections. For example, the following code accesses a Web object that is contained in the Webs collection and keeps a reference to the web in the variable w.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint