+ Reply to Thread
Results 1 to 3 of 3

Isolated a very strange 2003 'type mismatch' error. Any ideas please?

  1. #1
    Registered User
    Join Date
    04-12-2011
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007/2010
    Posts
    67

    Isolated a very strange 2003 'type mismatch' error. Any ideas please?

    Hi,

    I have made a spreadsheet in 2007 but in 2003 I get this very odd error. I've managed to isolate it in the attached example - here's the code:

    Please Login or Register  to view this content.
    I get a type mismatch on the match function if I've looked at the seriescollection.count before.

    Any ideas what is causing this or workarounds gratefully received.

    Chinchin
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Isolated a very strange 2003 'type mismatch' error. Any ideas please?

    try to write
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-12-2011
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007/2010
    Posts
    67

    Re: Isolated a very strange 2003 'type mismatch' error. Any ideas please?

    Thanks nilem but I cannot test this as I an now back home without 2003. However, I doubt it will help as the code works fine without the 'chart' line. I've found a couple of things since I posted this:

    - selecting a cell in the code after the chart line solves the issue
    - putting a delay (application.wait) after the chart line causes the code to freeze then execute correctly when escape is pressed

    I think this is a genuine 2003 bug around the application being caught up in the seriescollection somehow.

    Chinchin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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