how to insert client variable to macro

hi

I opened the document in HTML using activex

I want to put a variable created in HTML in a macro of the document

What should I do?

Or can I output variables to a document without using macros?