+ Reply to Thread
Results 1 to 2 of 2

Type Mismatch on find command

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007 to 2013
    Posts
    35

    Type Mismatch on find command

    PLease help i am gettting type mismatch with this


    Sub Ammend_FindRow()
        
        Dim BDone As Range
    
            Set BDone = Worksheets("Cranes").Range("B7:B500000").Find(Range("$L$1"), xlValues, xlWhole, xlByRows, xlNext, False, False, False)
            
            If BDone Is Nothing Then
            
            Exit Sub
    
            BDone.Select
            
            End If
        
    End Sub
    Thank you

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Type Mismatch on find command

    The 2nd argument of Find is After and should be a range, you have the constant xlValues as the 2nd argument.

    Try putting another comma between the first 2 arguments or specify the After argument.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Can't find type mismatch
    By captive in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 11:56 AM
  2. Range and Find function error: Type Mismatch
    By VBNewb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2011, 02:10 PM
  3. modify target command code to prevent type 13 mismatch
    By HP RodNuclear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2011, 03:59 PM
  4. Run time error 13 Type Mismatch pointing to Find MatchCase=false
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2009, 11:53 PM
  5. Type Mismatch Error on Find Closest Match
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2007, 11:07 AM

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