How to create custom functions in word like =rand(1,2) ?

Occasional Visitor

I know if I type in =rand(2,3), word gives me some randomly generated text where 2 is the number of paragraphs and 3 is the number of sentences in each paragraph. So basically it is function with 2 inputs. I want to know if I can create a function that takes some input and basically outputs accordingly. For example: I want to create a function like =frac(2,3) which will give me the field code {\eq \f(2,3)}.

0 Replies