did you add the reference for the micrtosoft word in the VBA options?
if not you need to define the constant
Const wdPageBreak = 7
--
joel
------------------------------------------------------------------------
joel's Profile:
http://www.thecodecage.com/forumz/member.php?u=229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=198796
http://www.thecodecage.com/forumz