Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Gray Box Display Issue (XP)

    I have code that does a print out of various sheets every second or so. I have noticed that between the print dialog box being displayed there is a gray box about 2/3rd the size of the dialog box. Does anyone know why this would be appearing? Is it a resource issue? I have Application.ScreenUpdating = False with in the code.

    Thanks,
    John

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,437
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: Gray Box Display Issue (XP)

    <img src=/S/hello.gif border=0 alt=hello width=25 height=29> John

    <font color=blue>I have Application.ScreenUpdating = False</font color=blue>

    I guess this is why...

    When you do a "Application.ScreenUpdating = False" you are not updating the screen and thus when the print dialog box displays the first time, it will not be erased from the video screen after its dismissed by the software.

    I would suggest you turn ScreenUpdating on and off once before the printing and then after the printing is done so that once you activate the worksheet, if you are, it will be off, but then when you print, it will be on.

    I some times have a dummy worksheet with all visible cells painted Gary. And I do all displays on this worksheet which looks like a background.

    Its a tricky thing this screen updating...

    Hope this helps.

    Wassim
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

Posting Permissions

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