Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Working with the variable "OsUser" within the Macro

Hello,

         I need to access the User logged within a macro, already used the ActiveDocument.Variables, but I'm not succeeding.

        thankful,

Wagner Figueiredo

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

Define a variable:

vUserID

=upper(osuser())

In the macro:

set v = ActiveDocument.Variables("vUserID")
strUserID = v.GetContent.String

View solution in original post

1 Reply
m_woolf
Master II
Master II

Define a variable:

vUserID

=upper(osuser())

In the macro:

set v = ActiveDocument.Variables("vUserID")
strUserID = v.GetContent.String