excel vba random between

The very first thing to note about RANDBETWEEN is that it will generate repeat values. Multiplies arrays of numbers and sums the resultant array. Hi Team, How to write a code or formula to generate a random number between 2 numbers. dim a as integer a=3 if (a between 1 and 100) then msgbox ( a & "within the limit " ) else msgbox (a & "Out of limit") end if we'll my goal is how to use the "Between And " operator in VBA with numeric data thankx This thread is locked. function onCatChange() {