Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting Override Master Page Items

Status
Not open for further replies.

KenWK

Programmer
May 25, 2001
76
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top