Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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