Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002

    Unanswered: Chart is not properly refreshed

    I have a query that I use for a chart's row source. Here
    is my code:

    [myGraph].RowSource = myQuery


    Manipulate series collection

    What is confusing me is that even though I put the new
    myQuery, the no of series collection which displayed in
    the msgbox always gives the previous one. However, at the
    end of the sub routine (End or Exit Sub), the graph
    refreshes automatically. The reason why I need this is I
    need to manipulate the series collection. I try to put
    [myGraph].refresh or sleep before the manipulation, it
    still did not refresh it correctly. It seems the refresh
    only works when it reads End or Exit Sub. Does anyone have
    suggestion ?


  2. #2
    Join Date
    Nov 2001

    Try DoEvents statement.

Posting Permissions

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