+ Reply to Thread
Results 1 to 9 of 9

CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    4

    Cool CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Extra points for creativity...

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    I don't wish to participate in the contest.

    Some tips follows...

    1. If the code for both charts is same, you can do
    for i = 1 to 2
    with activesheet.chartobjects("Chart " & i )
    your code
    end with
    next i

    2: No need to select the series. Rather do
    with seriescollection(n)
    your code
    end with
    Regards,
    Vandan

  3. #3
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Not having read the code but Excel 4??????????
    Last edited by WasWodge; 07-27-2012 at 02:48 PM.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    1) How long does your macro take to execute?
    2) Does it do what you want?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    10-04-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Anyone? Bueller?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Quote Originally Posted by JBeaucaire View Post
    1) How long does your macro take to execute?
    2) Does it do what you want?
    Still awaiting answers.

  7. #7
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Quote Originally Posted by JBeaucaire View Post
    Still awaiting answers.
    I think you will find that most senior members (I'm not) are not interested in competitions they are on the forum because they want to help / improve other posters knowledge.
    Jerry has posted a couple of questions, if you answer those questions then you will probably find that there will be suggestions to improve your code if that is what you want.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Also. your Thread Title breaks Rule # 1
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: CONTEST - Make This Code More Efficient (winner gets bragging rights...) :)

    Thanks Roy.

    K9-961,

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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