+ Reply to Thread
Results 1 to 2 of 2

VBA not properly formatting pie chart

  1. #1
    Registered User
    Join Date
    07-05-2006
    Posts
    59

    VBA not properly formatting pie chart

    I have the following code:

    Please Login or Register  to view this content.
    From a separate module, when I call each sub sequentially, I get my chart and legend to the left and incorrectly sized.

    If, however, I utilize breakpoints, or simply place my cursor in each sub (again sequentially), I get the intended results.

    Anyone have an idea what is going on here?
    Last edited by Kaziglu Bey; 05-21-2012 at 02:58 PM. Reason: found a solution

  2. #2
    Registered User
    Join Date
    07-05-2006
    Posts
    59

    Re: VBA not properly formatting pie chart

    I have figured this out. I'll post should anyone come across this.

    The above three sub routines are called from another sub routine and are nested between ScreenUpdating. When the chart object is created, it is done so with a default position and size. The legend and pie chart positions, and size, seem to be set with the default chart object position and size, so when ScreenUpdating is set to true, only the chart object gets the intended property changes.

    Hope that helps someone else.

+ 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