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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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