Overridden master item not positioning correctly
Hello All,
I'm not sure I can explain this, but here goes.
I wrote a script in VB 6 that we've been using for years in CS3, for the past 6 months (after some updates) in CS6. It "autoflows" the text at the end of an InDesign file until the text no longer overflows. It does this by overriding a particular text frame from the master.
I have one file on which the master frames do not override to the correct position, they should be exactally on the margins on all sides, as they are on the master. On the right pages the frame sits up higher than the top and bottom margins, on the left pages it sits higher than the top and bottom margins (in the same incorrect position as the right page) AND shifted to the left of the margins.. Stepping through the execution of the code I can see the frame become overridden to the wrong position when the below line executes, what I can't figure out is WHY! TempFrame is defined as a TextFrame, SrchPg is defined as a Page.
Set TempFrame = SrchPg.MasterPageItems(i%).Override(SrchPg)
If I insert a page manully and continue the text flow manually by clicking the overridden text red plus sight and just click in the next frame it comes off in the correct positon. However, doing it manually and using Ctrl+Shift+Click to make it autoflow that first frame comes off the master in the wrong position, like the script does it. On the subseqent pages that get created without the script, the overridden text frames are in the correct position, on the margins on all sides.
Layout adjustment is on, but snapping to any grids is not.
Any ideas?
Many thanks,
Ken