Results 1 to 2 of 2

runtime error 13 type mismatch

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    runtime error 13 type mismatch

    i get this error when i run
    Sub additem()
    If Cells(2, 1).Value And Cells(2, 1).Value And Cells(2, 3).Value <> "" Then
    Cells(2, 1).Resize(1, 7).Copy
    Range("A6").End(xlDown).PasteSpecial xlPasteValues
    Cells(2, 1).Resize(1, 7).ClearContents
    Range("E2").Value = "=IF(RC[-2]="""","""",IF(RC[-2]<=SUMIF('Item Summary'!C[-4],RC[-4],'Item Summary'!C[-1]),""Yes"",""No""))"
    Else
    MsgBox "test"
    End If
    End Sub
    though it runs msgbox fine with empty cells?

    Thankyou in advance.
    Last edited by D_Rennie; 08-15-2009 at 11:15 PM.

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