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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ActiveDocument.GetPath in vb-macro

Hi Experts,

is there any chance to get the path of the active document without the Name in a vb-macro?

Found the ActiveDocument.GetPathName object, but i'd need something like ActiveDocument.GetPath.

Thanks in advannce

Sebastian

Labels (1)
1 Reply
marcus_sommer
MVP
MVP

Hi Sebastian,

this is directly not available. You can in your solution replace the file-name with string-functions or use a variable like this: (QvWorkPath is a system-variable)

sub x

dim xy

set xy = ActiveDocument.Variables("QvWorkPath").GetContent

msgbox xy.String

end sub

- Marcus