+ Reply to Thread
Results 1 to 5 of 5

Iterate Through Names, list unused: Type Mismatch with Cells.Find

  1. #1
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Iterate Through Names, list unused: Type Mismatch with Cells.Find

    My goal is to list all names in my workbook which are not referenced in a formula. Here's my code so far:
    Please Login or Register  to view this content.
    It bombs on the Set rng line. The goal is to iterate through all names in ThisWorkbook.Names and list those not referenced in a formula or in a cell value on the worksheet named UnusedNames.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Iterate Through Names, list unused: Type Mismatch with Cells.Find

    Hello there,

    Try replacing your code with the following:

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: Iterate Through Names, list unused: Type Mismatch with Cells.Find

    hi,

    check this way too:
    Please Login or Register  to view this content.
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Iterate Through Names, list unused: Type Mismatch with Cells.Find

    Thanks rvasquez and MaczaQ - both comments helpful. Used rvasquez's solution.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Iterate Through Names, list unused: Type Mismatch with Cells.Find

    No problem! Thanks for the star tap!

+ 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