+ Reply to Thread
Results 1 to 3 of 3

Dragging form leaves trail

  1. #1
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Dragging form leaves trail

    When I write VBA macros which call for forms to be displayed on the screen, invariably if the user drags the form over the screen it leaves a trail of images of the form in its original place with repeated images along the drag path. Looks quite pretty but very irritating. The reason that the user is dragging the form in the first place is because he wants to see what is in the cells behind the current location of the form, but currently dragging the form does not reveal those cells. Quite the reverse, it just fills up more and more of the screen with images of the form.

    It is a bit like the opening credits of the UK sit-com "the IT crowd", if that means anything to you.

    So, is there something that I can do to inhibit this behaviour, please? Excel 2003.

    Thanks
    Last edited by 1eyedjack; 03-13-2012 at 04:53 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Dragging form leaves trail

    Your code has switched off ScreenUpdating without switching it back on. That is generally what causes this effect
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Re: Dragging form leaves trail

    Thanks as always.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1