+ Reply to Thread
Results 1 to 2 of 2

Run-time Error "13" - File Type Mismatch

  1. #1
    brentm
    Guest

    Run-time Error "13" - File Type Mismatch

    Greetings all!

    I have a spreadsheet that is giving me an error for this line in the code:

    Case 2005

    'quotes submitted
    'If Cells(C1, AmountCol).Value <> "" Then
    DataArray05(Month(Cells(C1, BidDateCol).Value), 1) =
    DataArray05(Month(Cells(C1, BidDateCol).Value), 1) + Cells(C1,
    AmountCol).Value
    'End If

    I used the same for Case 2004, which works just fine.

    Case 2004

    'quotes submitted
    'If Cells(C1, AmountCol).Value <> "" Then
    DataArray04(Month(Cells(C1, BidDateCol).Value), 1) =
    DataArray04(Month(Cells(C1, BidDateCol).Value), 1) + Cells(C1,
    AmountCol).Value
    'End If

    Any ideas?

    Thanks.

  2. #2
    Tom Ogilvy
    Guest

    Re: Run-time Error "13" - File Type Mismatch

    I would look at what is in Cells(C1,AmountCol) when you get the error.

    for example

    3 + " "

    would cause that error

    --
    Regards,
    Tom Ogilvy



    "brentm" <[email protected]> wrote in message
    news:[email protected]...
    > Greetings all!
    >
    > I have a spreadsheet that is giving me an error for this line in the code:
    >
    > Case 2005
    >
    > 'quotes submitted
    > 'If Cells(C1, AmountCol).Value <> "" Then
    > DataArray05(Month(Cells(C1, BidDateCol).Value), 1) =
    > DataArray05(Month(Cells(C1, BidDateCol).Value), 1) + Cells(C1,
    > AmountCol).Value
    > 'End If
    >
    > I used the same for Case 2004, which works just fine.
    >
    > Case 2004
    >
    > 'quotes submitted
    > 'If Cells(C1, AmountCol).Value <> "" Then
    > DataArray04(Month(Cells(C1, BidDateCol).Value), 1) =
    > DataArray04(Month(Cells(C1, BidDateCol).Value), 1) + Cells(C1,
    > AmountCol).Value
    > 'End If
    >
    > Any ideas?
    >
    > Thanks.




+ 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