Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom,
Thnx a lot for your help. Im able to get working with Match function after changing it to variant. Also thanx for the Error Handler explanation. It took me some amount of re-reading in order to appreciate the syntax. Thanks a lot, Hari India |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom,
I forgot to ask you this. In the First reply of yours to this question you had mentioned that I dont need error handling to do what I want application match returns an error testable by iserror if you don't use the worksheetfunction qualifier. I accordingly changed it but forgot to ask you the essential difference between Application.worksheetfunction.match and Application.Match. Why is it that in the later case one doesnt get an error. (I consulted help -- Application Property , WorksheetFunction Object, WorksheetFunction Object but it went above my head) Actually I wrote a code If Cells(z, qupcode + 3) = "" Then Exit For ElseIf Not (IsError(Application.worksheetfunction.Find("=", Cells(z, qupcode + 3)))) Then ActiveCell.Formula = "'= if( " & "&" & Cells(1, 2) & " = " & Cells(z, "b") & " )" & ThisWorkbook.Sheets(lookingupsheetname).Cells(qupc ode + 1, "A") & " = " & Cells(z, "d") Else ActiveCell.Formula = "'= if( " & "&" & Cells(1, 2) & " = " & Cells(z, "b") & " )" & Cells(z, "d") End If And the code was blanking out at the point when it couldnt find a -- "=" -- and then I remembered your first post regarding not using worskheetfunction qualifier. And when i changed it to -- Application.Find -- things were smooth. If possible please throw some light on the same. Thanks a lot, Hari India |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error Handling #N/A with AVERAGE Function - Average of values in Row | Excel Worksheet Functions | |||
Match function, N/A error, how do I get around it? | Excel Programming | |||
Error Handling Open Function or query for missing Files | Excel Programming | |||
Error Handling | Excel Programming | |||
Error handling in vba function | Excel Programming |