Is there a vba equivalent to excel\'s mod function?
mod
Function Remainder(Dividend As Variant, Divisor As Variant) As Variant Remainder = Dividend - Divisor * Int(Dividend / Divisor) End Function
This function always works and is the exact copy of the Excel function.