• Run-time Error 13, Type Mismatch (2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Run-time Error 13, Type Mismatch (2000)

    Author
    Topic
    #413095

    I am attempting to launch a macro and get this. It stops on this in the code:

    .MonetaryAmount = Format(-100 * Application.Cells(nRow, 15), FMT_CURRENCY)

    Any ideas?

    Viewing 1 reply thread
    Author
    Replies
    • #908654

      This doesn’t tell us much. We don’t know what MonetaryAmount is, or FMT_CURRENCY, or what the value of Cells(nRow, 15) is.

      • #908668

        Hans, thanks. Found the problem. Some of the data had been entered with “extra spaces.” For my benefit, what could I have added to my post in terms of specfics to help?

        Thanks.

        • #908672

          The rest of the macro so we could see how those were defined (DIMed), and what values they were set to, and if some of those were defined names, how they were defined.

        • #908673

          The rest of the macro so we could see how those were defined (DIMed), and what values they were set to, and if some of those were defined names, how they were defined.

      • #908669

        Hans, thanks. Found the problem. Some of the data had been entered with “extra spaces.” For my benefit, what could I have added to my post in terms of specfics to help?

        Thanks.

    • #908655

      This doesn’t tell us much. We don’t know what MonetaryAmount is, or FMT_CURRENCY, or what the value of Cells(nRow, 15) is.

    Viewing 1 reply thread
    Reply To: Run-time Error 13, Type Mismatch (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: