Hi,
I wrote a module which suppose to receive a range ,int and a string as input.
The module should iterate over the range to find the row in the range that its value = string input.
When it finds it - it needs to check 2 things:
1) if inputint >= int in the same row of match string (1 column to the right)
2) if inputint <= int in the same row of match string (2 column to the right)
This is the code:
I'm new to VB so I must be making a basic mistake - the error I get is " Compile Error - Argument not optional "
I think the error is either in the function signature "str As String" or in the if statment rCell.Value = str, Dunno if its possible to compare a string to rCell.Value?
Thx in advance!
Bookmarks