3 Replies Latest reply on Jun 17, 2009 11:23 AM by Kasyan Servetsky

    [CS3-VB] Why doesn't applying masterpage on page range?

    Set Screen name Level 1

      I had to use loop for applying masterpage on page range:

      For i = myStartPage To myDoc.DocumentPreferences.PagesPerDocument
      myDoc.Pages.Item(i).AppliedMaster = myDoc.MasterSpreads.Item(myShbl.Name)
      Next 'i

       

      I wonder, why this method doesn't work:

       

      myDoc.Pages.ItemByRange(myStartPage, myEndPage).AppliedMaster = myDoc.MasterSpreads.Item("A-Master")