Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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