+ Reply to Thread
Results 1 to 3 of 3

VBA to indicate if a chart has passed or Failed

  1. #1
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    62

    VBA to indicate if a chart has passed or Failed

    Hi,

    I have a XY scatter chart that uses the plots to plot a line graph. The X Axis ranges from -5 to +5 and a Y axis that ranges from 0 to 2600. The Y axis is plotted from cell Ranges C65 to C165, the X axis is plotted from cell ranges D65 to D165. The peak of the graph (Largest value) at Y axis should be cell C115 which is 0 X axis Cell D115 in an ideal world, however I want to add in a tolerance where the Peak can be at +/- 0.5 Cells D110 to D120.
    I want to use VBA to display a popup message box as "Passed" if the Y axis peak of the graph is 0 +/- 0.5 and a "Fail" message box if the peak is outside of these tolerances.

    Any help would be much appreciated

    Thanks in advance,
    Steve
    Red Graph.xlsm

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: VBA to indicate if a chart has passed or Failed

    Hi Stevo56,

    Nice spreadsheet design. Try the following:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    03-20-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: VBA to indicate if a chart has passed or Failed

    Thankyou so much, that worked brilliantly

+ 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. Activate method of chart object failed
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2008, 06:37 AM
  2. My first chart... failed!
    By RCH in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-15-2007, 12:46 AM
  3. Run-time error '1004' Move Method of Chart class failed
    By skyreaver88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2007, 05:17 PM
  4. Replies: 2
    Last Post: 08-07-2006, 09:45 PM
  5. Replies: 3
    Last Post: 02-23-2006, 11:22 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