Pairs.MatchType Property

<< Click to Display Table of Contents >>

Navigation:  Developer Edition > Visual Basic for Applications (VBA) > Object Model Reference > Pairs Object > Properties >

Pairs.MatchType Property

Previous pageReturn to chapter overviewNext page

Returns or sets a variable specifying how worksheets will be matched by AddMatched method. MatchType constant.




expression. A variable representing a Pairs object.



This example adds all worksheets with equal names. Protected and hidden sheets are included.


With .Pairs

  'include protected and hidden sheets

  .MatchInclude = MatchIncludeFlag_ProtectedSheets + MatchIncludeFlag_HiddenSheets

  'match all sheets with same name

  .MatchType = MatchType_AllByName

  'add sheets


End With