+ Reply to Thread
Results 1 to 16 of 16

stop flickering effect on macro ("Application.ScreenUpdating=false" does not work)

  1. #1
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    stop flickering effect on macro ("Application.ScreenUpdating=false" does not work)

    hey guys bit of a weired one here

    I have this

    Please Login or Register  to view this content.
    to unhide certain sheets after somthing that hides all but 1 sheets

    cSheets is a collection of all sheet names
    cHStatus is a collection of sheets that where origanly visible
    populated by

    Please Login or Register  to view this content.
    sActive is the name of the sheet that was originaly active

    on running this code i get alot of flashing
    i have tryed:
    Application.ScreenUpdating = False
    but no joy
    on every sheet that shows it blinks up and then goes back to the original sheet (sSheet)


    i want the sheet to look good and this is the only thing that is bugging me
    any ideas??
    I dont like to use code i dont understand
    it makes it hard to use in other situations
    so please try to be as clear and patent as possible with me

    Criticism is welcomed

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    Do you have any code behind these sheets?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    alot of code but just in modules.
    the sheet is like 6mb

    i only have 2 events though (open and save)

    ps: sorry for the delay
    Last edited by FRIEL; 12-09-2009 at 04:24 AM.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    Do you have any charts/controls embedded in the sheets?

  5. #5
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    no charts
    sorry not too good on my terminology
    is controlls just buttons that activate macros?

    if so then yes

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    Are the buttons from the Forms toolbar or the Control Toolbox?

  7. #7
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    forms

    i didnt know there was a difference

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    There are lots of differences between the two - the Forms versions are usually more stable when embedded in worksheets. For the purposes of this discussion, I suspect there wouldn't be any benefit in using one over the other though as I think it's the drawing objects layer that is being refreshed and causing the flickering.
    Are the controls on the sheets that you are hiding/unhiding or on the sheet that is currently active? (or both?)

  9. #9
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    both
    but its not that its refreshing ( i think)
    its more every time a sheet is unhidden it shows for a split second and then reverts back to the sheet that was first shown

  10. #10
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    Any chance you can post the workbook, removing any confidential information?
    Also, has it always done this, or is this new code? There is an update for Excel 2003 (and another for 2007) that seems to cause issues with sheets showing through other sheets, but from the posts I've seen, I would expect the problem to remain at the end of the code if that were the culprit.

  11. #11
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    ok i can srtip out all the cells and just give blank sheets
    i think u will only need the save and accsess macros
    give me a min

  12. #12
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    ok here we go

    to open this

    make a new workbook with
    3 sheets the third sheet need to be called Verification and in cell a1 type 321

    i cant upload her for some reason

    so i have uploaded here

    also just a side note
    if you happen to notice anything in the save event that would speed things up a bit it would be worth a mention.

  13. #13
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    Friel, is the file too big? try zipping it first

  14. #14
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    I'm not seeing the flickering.
    Do you have update KB 973475 applied to your machine? (you can view it in control panel under add/remove programs, with the 'Show updates' option checked).

  15. #15
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    no not that i can see. what does that do?
    running 2003 btw
    flicker alsso appers on 2007 though
    u not being able to see the flicker is goin to make it hard for you to help lol

    teylyn file is just over 900kb
    but this may be some kind of security from my workplace system

  16. #16
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,974

    Re: stop flickering effect on macro ("Application.ScreenUpdating=false" does not work

    Tested in 2007 too - still no flicker.
    That update is the buggy one I mentioned earlier. The equivalent one for 2007 is KB973593 which has a similar issue with bleed-through from other sheets.

+ 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