jeudi 30 mars 2017

Generate a random number in MS WORD VBA

In MS EXCEL VBA I have for many years used

lowerbound=some figure
upperbound=some other figure
m=Int((upperbound-lowerbound+1)*Rnd +lowerbound)

I put this in a WORD macro and it did not work; it gave the same number for m every time I ran it.

Can anyone assist please




Aucun commentaire:

Enregistrer un commentaire