+ Reply to Thread
Results 1 to 4 of 4

Image Control Not updating During the Printout Command - Glitch in Excel?

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    NY
    MS-Off Ver
    excel 2007
    Posts
    3

    Image Control Not updating During the Printout Command - Glitch in Excel?

    I've got three image controls in a worksheet (Sheet 1), which changes pictures based on the item selected in a cell (Range "Loan_number"). The image controls work fine when changing the value of the cell containing the name range "Loan_number".
    However, seems there is some glitch with vba refreshing the image every time I use the printout. I'm not sure what causes the image not to update when selecting new items (and hence new pictures) from the list. The image updates for the first iteration, but then it stops updating until all the jobs are sent to the printer (and unfortunately all the jobs contains the same picture, which defeats the purpose of the macro). Once the printing is sent, it refreshes the image control with the last chosen "Loan_Number" in the list.
    If I debug and step through this code, it actually refreshes the image controls and the pictures without any problem.

    Note that I've played with various ways to refresh, calc, full recalc etc. in order to "jump start" and force a refresh in between print jobs.

    Help would greatly be appreciated it.
    Please Login or Register  to view this content.
    Last edited by jrbastidas; 02-09-2013 at 12:14 AM.

  2. #2
    Registered User
    Join Date
    02-06-2013
    Location
    NY
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: Image Control Not updating During the Printout Command - Glitch in Excel?

    Could anyone help me figure this out? I'm really stomped ;-(

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    NY
    MS-Off Ver
    excel 2007
    Posts
    3

    Re: Image Control Not updating During the Printout Command - Glitch in Excel?

    Solution:
    Only with a combination of DoEvents and ActiveWorkbook.RefreshAll did the pictures refreshed while using the printout function inside the for loop.

  4. #4
    Registered User
    Join Date
    07-11-2007
    Posts
    9

    Re: Image Control Not updating During the Printout Command - Glitch in Excel?

    Hi. I've been experiencing exactly the same problem. I know it has been four years but are you able to post the final code that you managed to get to work. I've tried DoEvents and ActiveWorkbook.RefreshAll to no avail. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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