+ Reply to Thread
Results 1 to 5 of 5

Screen Updating with Userforms

Hybrid View

  1. #1
    Registered User
    Join Date
    08-16-2007
    Location
    Portsmouth, UK
    Posts
    86

    Screen Updating with Userforms

    Hi.

    My Program is rather long with lots of flicking between workbooks, so I have turned off screen updating for the whole program. However I also have a several userforms that are called by the program and these do not disapear when there are unloaded anymore. Is this due to the screen updating being off?

    I also have a sliding userform (gets wider if certain options are selected and then returns to its original size). At present when the width decreases back to the original size, I am left with a very unatractive black are where the form used to be. I have tried turning on the sreen updating while the userform changes size, but this appears to make no difference.

    Are these issues the result of the screen updating being off?
    If so could I trun it back on the line before the 'Unload Me' statement and back of the line after to solve the problem?
    If not, can you suggest what is causing the display issues?

    Thanks

    Robyn

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello RobynC,

    I have never experienced the issues you are having, and had no success in recreating them. What version of Windows and Excel are you using?

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    08-16-2007
    Location
    Portsmouth, UK
    Posts
    86
    Hi,

    Hmm very odd. i am using Excel 2002 and I think we are on Windows XP Professional

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    One strange effect with a UserForm with ScreenUpdating off is that if you try to frag that UserForm you will get the appearance of multiple forms overlaid. Only switch off ScreenUpdating when necessary & return it immediately.

    Better still check your code, you don't need to switch off screen updating if you eliminate unnecessary Selecting & Activating.
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-16-2007
    Location
    Portsmouth, UK
    Posts
    86
    Thanks Roy, I had noticed the multiple userforms as well.

    I don't think I have much unnecessary selecting and activating, although there possibly is some that I could get rid of, but am not concerned with that at the moment. I shall adjust the code to just turn off screen updating for parts of the code, rather than the whole program

+ 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