Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Annoying Refreshes in Word

Status
Not open for further replies.

Roam2k2

Programmer
Aug 4, 2008
9
CA
Hi,
I've recently added VB checkboxes and textboxes, comboBoxes to a Word document, and whenever i either scroll down or type in the textbox...the screen refreshes and i'lll see comboBoxes out of place or my textbox moving up and down....yet their positions don't really change...it's just a weird refresh...hope i'm being clear...thanks guys!
-Roam.
 
Hi Roam

You can limit, but not entirely eliminate, refreshes of the document window via:
Application.ScreenUpdating = False
which you reset to:
Application.ScreenUpdating = True
when your macro's finished.

Userform refreshes, however, are basically subject to you graphics card's performance. From what I can tell, it seems that, with modern CPUs the spinner scroll rate can outpace the grapgics card's ability to keep up, so you sometimes get a bit of flashing going on. I don't know if there's much you can do about that.

Cheers



[MS MVP - Word]
 
Thanks Macropod ! Hmmmm, yea...it's probably my graphics card. I'll definitely try that bit of code and let you know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top