Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: 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