+ Reply to Thread
Results 1 to 4 of 4

vba runtime error 448 named argument not found assistance plz

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    vba runtime error 448 named argument not found assistance plz

    Hi

    I am getting the runtime error 448 on the following code and can not figure out why.

    Private Sub CommandButton1_Click()
    Dim done As Boolean         'done with search and clearing
    Dim slt As Range
    Dim sltrow As Long
    Dim lot As Long
    Dim rmvlot As Integer
    Dim asltrow As Long
    Dim lookfor As String
    
    
    
    lookfor = "LOT #"
    done = False
    
    Do While done = False
    
        With Sheets("KRILL")
        
                Set slt = Worksheets("KRILL").Range("a1:a1000").Find(What:=lookfor, LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByColumns, SerchDirection:=xlNext, MatchCase:=False)
                sltrow = slt.Row
                lot = slt.Offset(1, 0)
                rmvlot = MsgBox("Remove Lot  ", lot, vbQuestion + vbYesNo)
                
                If rmvlot = vbYes Then
                        asltrow = sltrow + 4
                        
                        Sheets("KRILL").Range(.Cells(asltrow, 4), .Cells(asltrow + 8, 10)).ClearContents
                        
                        Sheets("KRILL").Range(.Cells(asltrow, 13), .Cells(asltrow + 8, 14)).ClearContents
                        
                End If
                
                If Sheets("KRILL").Cell(asltrow + 3, 1) = "Run Total" Then done = True
                
        End With
        
    Loop
    
    
    End Sub
    I am also attaching the file so you can see the data.

    My goal is delet data in cells d5 to j12 and m5 to n12. there are formulas in other cells. And only if the user is done with the data for that specific lot number.

    I can not figure out what arguement I am not naming.

    thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: vba runtime error 448 named argument not found assistance plz

    Check spelling of these two in this line :
    Set slt = Worksheets("KRILL").Range("a1:a1000").Find(What:=lookfor, LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByColumns, SerchDirection:=xlNext, MatchCase:=False)
    searchorder:=xlByRows, searchdirection:=xlNext
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: vba runtime error 448 named argument not found assistance plz

    OK. Thank you so much. I looked through that several times looking for misspellings, and just glazed over it.

  4. #4
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: vba runtime error 448 named argument not found assistance plz

    Happy to assist you. You can add reputation - if I think my comments assist you!!!

+ 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] Compile error: Named argument not found (Foglio1 16:89) - Help With Referencing
    By Mrmarc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-17-2017, 04:37 AM
  2. Named Argument Not Found
    By seanhee in forum Excel General
    Replies: 3
    Last Post: 07-08-2017, 09:06 PM
  3. [SOLVED] Named argument not found error
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2012, 07:09 AM
  4. [SOLVED] Named argument not found??
    By jasondu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 11:30 AM
  5. Named argument not found
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2006, 03:55 PM
  6. Macro Error: Compile error: Named argument not found
    By A.S. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2005, 05:15 PM
  7. [SOLVED] Macro Error: Named argument not found
    By A.S. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-28-2005, 03:35 PM

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