Hello All,
I'm trying to write a script which includes the equivalent of right clicking a master page in the page pallet and selecting "Override All Master Page Items."
I've tried looping through the .AppliedMaster.PageItems using the Override command as shown below where IPage is .ActiveWindow.ActivePage:
InD.ActiveWindow.ActivePage.AppliedMaster.PageItems(i%).Override IPage
but I'm getting an "Invalid object for this request" error.
Any help is greatly appreciated.
I'm trying to write a script which includes the equivalent of right clicking a master page in the page pallet and selecting "Override All Master Page Items."
I've tried looping through the .AppliedMaster.PageItems using the Override command as shown below where IPage is .ActiveWindow.ActivePage:
InD.ActiveWindow.ActivePage.AppliedMaster.PageItems(i%).Override IPage
but I'm getting an "Invalid object for this request" error.
Any help is greatly appreciated.