Calling macros from a document

M

MaxBass #I-D

It's a question I haven't been able to answe by myself ;-)

In Excel you can do that.
For example define a macro:

public function getNumber long
getNumber = 10
end function

Then go to a cell and input
= getNumber()

And the "magically" the cell gets the number 10.

I tried to do the same in Word, inside and outside tables, but I
haven't been successful; and MSDN hasn't been helpful too.
I don't how to call a public function directly from the document (not
from VBA, from document) neither I know IF i can call such public
function.
May anybody help me please?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top