Hmmm...I have not run into this issue and I've used this code for many moons. I'll have to look into that and post some followup revised code.
>Remember that the ActivePage property isn't the always correctly associated with Pages collection.
>
>From the "Hacker's Guild"
>ActivePage is based on the display order of the pages, not their creation order. That is, the page frame's ActivePage equals PageOrder for the page that's on top.
>Unfortunately, the Pages collection uses creation order, so Pages[ ActivePage ] is meaningless.
>End Quote.
>
>Charlie
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05