+ Reply to Thread
Results 1 to 3 of 3

The Item With the Specified Name Wasn't Found

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    The Item With the Specified Name Wasn't Found

    I am getting run-time error '-2147024809 (80070057)' The Item with the specified name wasn't found. The debug highlights the "Chart 1" row in the code below. I would be very grateful to anyone who can help me resolve this issue. The strange thing is, my macros seem to run for the most part, but this error pops up when I first open the file, or when I make any kind of changes to line items in my Excel schedules. Thanks for your help.

    ----------------------------------------------------------------

    Option Explicit
    Private Sub Worksheet_Calculate()

    Dim KeyCells As Range

    ' The variable KeyCells contains the cells that will
    ' cause the following macro to run when they are changed.
    Set KeyCells = Range("g37")

    ' Place the rest of your macro code below.

    ActiveSheet.ChartObjects("Chart 1").Visible = KeyCells = 1
    ActiveSheet.ChartObjects("Chart 2").Visible = KeyCells = 2
    ActiveSheet.ChartObjects("Chart 3").Visible = KeyCells = 3

    End Sub

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: The Item With the Specified Name Wasn't Found

    If the code is in same sheet as charts you should use:
    Please Login or Register  to view this content.
    the active sheet may be a different one when this sheet is calculated.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    11-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: The Item With the Specified Name Wasn't Found

    That did the trick...many thanks!

+ 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. Replies: 1
    Last Post: 11-17-2012, 11:10 PM
  2. vlookup -when item not found, how can i return 0 instead of N/A?
    By mheinmiller in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2009, 12:45 PM
  3. Hide rows up to item found
    By itcheg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2009, 04:52 PM
  4. [SOLVED] How do I know on which worksheet an item is found?
    By Talar in forum Excel General
    Replies: 2
    Last Post: 06-21-2006, 07:00 AM
  5. [SOLVED] Error; chart wasn't found
    By Metin in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 10:06 PM

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