K
klav
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?
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?