Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Repagination

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LtCommander - 15 Feb 2006 04:29 GMT
Hello,
Well, I have an unusual repagination problem. I understand that
background repagination (in Normal View) may be turned off  along with
the screen updations.

Sub MakeAllFast()
ActiveWindow.View.Type = wdNormalView
ActiveDocument.Repaginate
Application.ScreenUpdating = False
Application.Options.Pagination = False
End Sub

Sub MakeAllNormal()
Application.ScreenUpdating = True
Application.Options.Pagination = True
ActiveDocument.Repaginate
End Sub

I am working on a huge 200 page document which needs automation and I
simply call 'MakeAllFast' before the Find and Replace loops and
'MakeAllNormal'  after the loops.
This works as expected and I do not see the "Word is repaginating ..."
message on my computer which runs Microsoft Word 2003.

However, the problem occurs when I install the template on Word 2000
based machines. Inspite of ensuring that background pagination is
turned off and Normal View is being used, I still keep getting the
"Word is repaginating..." message on these computers. I have no idea
why. What takes 30 seconds on my computer takes around 6-7 minutes on
the other computers that use Word 2000. I thought that background
repagination in normal view should work the same in all versions of
Word.

Can somebody please shed some light on this? I did break the code and
ensure that the options.pagination was false and activewindow.view.type
was 1 (Normal)  on the 2000 machines before the main loop got executed.
I still got the "Repagination" message.

Thanks a lot for any help.
Vince
Graham Mayor - 15 Feb 2006 10:07 GMT
Am I missing something here? You seem to be forcing a repagination in both
macros
ActiveDocument.Repaginate
and are complaining because it does so?

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Hello,
> Well, I have an unusual repagination problem. I understand that
[quoted text clipped - 36 lines]
> Thanks a lot for any help.
> Vince
LtCommander - 16 Feb 2006 01:26 GMT
Graham,
I am repaginating before turning the repagination off just to ensure
that the page numbers are correct before I enter the loop. I have
already tried removing that line from the MakeAllFast routine but of no
avail. Word 2000 still repaginates and Word 2003 does not.

Vince
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.