G
Guest
Goodmorning everybody!
I was wondering if someone could help me with the following problem:
"I wanted to make a macro which would find the first value (counting from
a1) that matches the value stated in C14 of "FORM". When it gives a match I
want to return the row number to "Sheet2".
I tested it with dates of which I was certain it had to find a match (as I
entered them myself in "Sheet1") Still it returns:
"Named Argument not Found" (Runtime error 448)"
I hope someon sees my mistake(s). Thanks in Advance!!
Sub TestDelete()
l = Sheets("FORM").Range("A1").Value
Sheets("Sheet1").Select
Cells.Select
Range("E1").Activate
k = Selection.Find(What:=Worksheets("FORM").Range("C14").Value,
After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Row
Sheets("Sheet2").Range("A1").FormulaR1C1 = "" & k & ""
End Sub
I was wondering if someone could help me with the following problem:
"I wanted to make a macro which would find the first value (counting from
a1) that matches the value stated in C14 of "FORM". When it gives a match I
want to return the row number to "Sheet2".
I tested it with dates of which I was certain it had to find a match (as I
entered them myself in "Sheet1") Still it returns:
"Named Argument not Found" (Runtime error 448)"
I hope someon sees my mistake(s). Thanks in Advance!!
Sub TestDelete()
l = Sheets("FORM").Range("A1").Value
Sheets("Sheet1").Select
Cells.Select
Range("E1").Activate
k = Selection.Find(What:=Worksheets("FORM").Range("C14").Value,
After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Row
Sheets("Sheet2").Range("A1").FormulaR1C1 = "" & k & ""
End Sub