Solved

Word VBA UserForm when dragged leaves a tail

Posted on 2011-03-01
5
437 Views
Last Modified: 2012-05-11
Hi experts

I have a template with a VBA UserForm. When the userform is loaded and the user goes to move the userform sideways on their screen to see some data in their document, it leaves a shadow/tail of its path. See image below.

I have code in the initialization of the form to stop screen updating, eg
Application.ScreenUpdating = False

Any ideas how I can resolve this issue?

User From leaving a shadow when moved
0
Comment
Question by:Fi69
  • 2
5 Comments
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 300 total points
ID: 35005804
General recommendation would be to set updating true since by nature you are preventing that action so you should only set updating false when making a (screen) change that is lengthy and set true as soon as possible after to avoid this.

Chris
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 35005931
Presumably the system has been restarted since the anomaly first occured.
 
I don't think that ScreenUpdating is relevant here - no changes are being made to the document.

My first instinct would be to try the general troubleshooting hints here:

http://support.microsoft.com/kb/921541

unless the problem is confined to one document, then we might assume that it is corrupt. If so, try copying the open document content to a new blank document.
0
 

Author Comment

by:Fi69
ID: 35041537
Thanks Chris and Graham.  I'll take this back to the client and see what the feedback is, then report back.


0
 

Author Closing Comment

by:Fi69
ID: 35363720
This actually seemed to fix the problem. I changed the code to only turn it off momentarily and the client has not experienced any further problems.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now