+ Reply to Thread
Results 1 to 2 of 2

Number-Text Type Mismatch?

  1. #1
    Registered User
    Join Date
    01-19-2005
    Posts
    2

    Number-Text Type Mismatch?

    Hi -

    I'm running a relatively simple VBA procedure that is combining the contents of three different cell into another cell. After the routine was already working, I ran into a problem - Type Mismatch run-time error "13" .

    After spending a while debugging this, I realized that the problem was only in *some* cases in which a cell was just numerals and no other text. When looking at the formatting of the cells, there is nothing consistently different about the ones with problems. Changing the problem cells' formatting to be exactly the same as those that work does not help.

    With the first set of data that I was looking at, I noticed that of the cells that were just numerals, some of them were marked at the corners as having errors, and some were not. The ones that were marked as errors were the ones that were *not* having a problem. At one point I double clicked on a problem cell, it became flagged for an error, and was no longer a problem.

    I find this to be very bizarre, that different cells act differently even though there are no apparent differences between them.

    I'm using Cells as opposed to Range, though I don't think it should make a difference. Most of the problem cells use the font Georgia, though changing the font doesn't help. I tried copying the values and using Paste Special to just copy the values, but that also didn't help.

    While I'm curious what caused this problem, my primary concern is to find a work-around. Any ideas?


    Thanks,

    Ryan

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Could you post your code with an example each of working and non-working case.

    - Mangesh

+ 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