to get a variable's value, use the code:
set v = ActiveDocument.Variables("Variable1")
to get the user name, you can create a variable in your QVW and use this expression:
and then in the macro you can get the variable's value as described above.
To get the current date, you can use a variable, or you can use the VBScript funcion "now()".
Hope this helps you