+ Reply to Thread
Results 1 to 3 of 3

Help with a pie-chart format in a VBA code

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    Brasil
    MS-Off Ver
    Excel 2003
    Posts
    7

    Help with a pie-chart format in a VBA code

    Hi all,

    My doubt is probably simple for most of you, but I'm pretty new at this so, better to ask you than keep looking through google.

    I've edited a code in word to create a pie chart and format it according the name of the colors using the select case. When this code is run in a excel 2007 it runs pretty good, but once I write the same code in a excel 2003, it gives me a runtime error which say: "Object variable or With block variable not set". below in the code I show where this message appears.

    My problem is right in this section, how do I solve this issue in excel 2003, once in excel 2007 is working properly.

    Thanks in advance

    The code is:
    Please Login or Register  to view this content.
    Last edited by Leosado; 03-16-2010 at 09:03 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Help with a pie-chart format in a VBA code

    Remove the Select, it's not required in any version.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-16-2010
    Location
    Brasil
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Help with a pie-chart format in a VBA code

    Hi Andy,

    I just took the select from the statement you said and the error keeps showing in the same place. !! Actually I've tryed that too, but it did not work.

    Other sugestion, or a new code for that?

    Thanks in advance

+ 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