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 / December 2005

Tip: Looking for answers? Try searching our database.

problem with refresh

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
klav - 29 Dec 2005 18:37 GMT
I have a macro that inserts a checkbox at the beginning of each line of a
document, and protects the document for form entry. For some users, after the
checkboxes are inserted and the document is protected, the screen does not
refresh so the user sees only part of the text -- the majority of the screen
appears blank.  If you use the vertical scroll bar to scroll down and back
up, it repaints and looks fine.
I have the following codes in the macro after the protection (also tried
putting them before the protection but it didn't help):

Selection.EndKey Unit:=(wdStory)
Selection.HomeKey Unit:=(wdStory)
Application.ScreenUpdating = True
Application.ScreenRefresh

I have to stress that this does not happen for all users, only some.  Is
there some other coding sequence I can use to ensure it works for everyone
all the time?
Helmut Weber - 29 Dec 2005 21:12 GMT
Hi,

I think, it's rather a problem of the system's graphics.

Maybe if you scroll a bit, the screen will repaint, like:

ActiveWindow.SmallScroll up:=1
ActiveWindow.SmallScroll down:=1

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

 
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.