+ Reply to Thread
Results 1 to 5 of 5

VBA Code For Charts

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    VBA Code For Charts

    I have taken the following code for Excel charts from a recorded macro

    Please Login or Register  to view this content.
    I know when converting Recorded Macro code there is usually a way to simplify the code. What is the proper syntax to setting the MinimumScale for "Chart 4" to Excel Named Range "InitDate"? (the 42369 was just to test the VBA code)

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Code For Charts

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    Re: VBA Code For Charts

    I tried this code and got the following error message

    Error Message.jpg

    Is there something else I need to setup to get this code to work?

  4. #4
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    Re: VBA Code For Charts

    Quote Originally Posted by djt76010 View Post
    I tried this code and got the following error message

    Attachment 708706

    Is there something else I need to setup to get this code to work?
    Any thoughts?

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: VBA Code For Charts

    Try entering the sheet name before the range like below

    Please Login or Register  to view this content.

+ 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. VBA code to have dynamic charts
    By edoptx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2012, 04:02 PM
  2. VBA code to have dynamic charts
    By edoptx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2012, 11:55 AM
  3. [SOLVED] How to code a bar of pie charts in vba?
    By jonelamora in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-25-2012, 04:29 AM
  4. Code to create charts using VBA
    By Manpar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2012, 06:53 AM
  5. VBA Code to select charts based on VBA code
    By WillCass in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-28-2011, 06:12 AM
  6. Charts driven by code are not governed by code nor impacted by it?
    By CaptainSeven in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2010, 04:29 AM
  7. Need code to exporting Charts & table
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2006, 03:54 AM
  8. Creating Charts in VBA Code
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2005, 03:06 AM

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