In which part of the code you are having difficulty, as per your explanation I understood that your function GetSiebListRows is working fine and you are getting the output in intRows. No you want to check some condition and proceed further. right? Correct me I am wrong.
you can simply use an IF..Then..Else
you can simply use an IF..Then..Else
Code:
IF intRows <> 1 then[hr]
you can simply use an IF..Then..Else
[code]
IF intRows <> 1 then
msgbox "Error"
else
Your Further statements..
end if