Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Kamran Kamran is offline
external usenet poster
 
Posts: 80
Default Updating fields using screen update doesn't work with command butt

Hello,
The code below works perfectly when tabbing away from a form entry field
that runs the macro on exit, but breaks on the second line when activated in
a Private Sub from a command button -- why?

Application.ScreenUpdating = False
ActiveDocument.PrintPreview
ActiveDocument.ClosePrintPreview
Application.ScreenUpdating = True

 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Normal style does not update all styles in document ChristyL Microsoft Word Help 1 June 16th 08 05:59 PM
Automatic template update isn't updating docs Hans Page Layout 3 February 6th 08 10:11 AM
Command to pull insertion point to top of screen? Ed from AZ Microsoft Word Help 1 November 2nd 07 06:27 PM
The FILE command does not appear at the top of my word screen. JD Microsoft Word Help 3 October 10th 06 08:42 PM
confirm SQL command after windows update Chris Mailmerge 1 December 1st 04 11:03 AM


All times are GMT +1. The time now is 03:31 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"