Solved

Word VBA UserForm when dragged leaves a tail

Posted on 2011-03-01
5
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

623 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