+ Reply to Thread
Results 1 to 5 of 5

VBA Code Error Upon Execution

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Unhappy VBA Code Error Upon Execution

    Hi

    I'm facing this problem with this small piece of code which i'm experimenting with. I'm wrote the code in Powerpoint 2007 by which i want to change the color of the bars in a chart. The code executes fine by complied STEP BY STEP but gives me an error "Object Required" when i press F5.

    Please help. Thanks in Advance.

    Please Login or Register  to view this content.
    Last edited by alansidman; 09-20-2013 at 04:29 PM. Reason: Added code tags and moved to Powerpoint forum

  2. #2
    Registered User
    Join Date
    09-19-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Code executes when executed Step by Step but gives error upon complete execution

    I was just experimenting with this a bit. The code seems to work perfectly for simple bar charts but it is giving errors for stacked bars.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Code executes when executed Step by Step but gives error upon complete execution

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    Because you are new to the forum, I have added the code tags and moved this thread from the Introduction forum to the PowerPoint forum. Please read our rules and adhere to them in the future.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-19-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Code executes when executed Step by Step but gives error upon complete execution

    Thanks, i'll keep this in mind

  5. #5
    Registered User
    Join Date
    09-19-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Code executes when executed Step by Step but gives error upon complete execution

    I got the solution myself.... all i had to do is use
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    ....
    If there are multiple charts in the same slide then this helps closing the earlier excel data file before opening the other data file.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automation Error At Odd Spot in Code Execution
    By Jenn68 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-02-2012, 11:50 AM
  2. Code execution has been interrupted error
    By vpnvipin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2012, 04:35 AM
  3. Error: Code Execution Has Been Interrupted
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2010, 07:32 AM
  4. [SOLVED] Macro 'Code execution has been interupted' error after print?
    By Bluehair the Pirate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2006, 02:25 PM
  5. error: Code Execution has been interrupted
    By Joshua Fredrickson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2005, 11:50 AM

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