axel67
Technical User
- Jan 2, 2007
- 21
Hi,
Does anyone know if it is possible to store comparison operators like "<=" in a variable and use them later in a comparison statement?
Example:
Function CellCompare(FirstCell As Range, SecondCell As Range, CompareOperator As Range)
'compare operator can be "=", "<>", "<=",.....
CellCompare = (FirstCell.Value & CompareOperator.Value & SecondCell.Value)
'should return true of false dpending if condition is met
End Function
This breaks my head for some hours now. Thanks for any hints.
Cheers,
Axel
Does anyone know if it is possible to store comparison operators like "<=" in a variable and use them later in a comparison statement?
Example:
Function CellCompare(FirstCell As Range, SecondCell As Range, CompareOperator As Range)
'compare operator can be "=", "<>", "<=",.....
CellCompare = (FirstCell.Value & CompareOperator.Value & SecondCell.Value)
'should return true of false dpending if condition is met
End Function
This breaks my head for some hours now. Thanks for any hints.
Cheers,
Axel