Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I've created a simple macro which gives the user a possibility to export a table to a QVD using a macro. It looks like this:
sub ExportObject()
set v=ActiveDocument.getVariable("vChosenWeek")
set u=ActiveDocument.getVariable("vChosenYear")
path="E:\QlikView\SourceDocuments\QVD\History\"
Filename="Week "&v.getContent.string & " " &u.getContent.string & ".qvd"
call test("CH173",path&Filename)
end Sub
sub test(objectID,FilePath)
set v=ActiveDocument.getVariable("vChosenWeek")
set u=ActiveDocument.getVariable("vChosenYear")
set o = ActiveDocument.GetSheetObject(objectID)
o.Exportbiff FilePath
set o=nothing
msgbox("Week"&v.getContent.string &" år " &u.getContent.string &" exportet." )
end sub
This works for my administrator-user. But it doesnt work for other users, allthough I did give them access to the folder where the QVD is created.
Any suggestions on how to solve this?
Access to external files requires extra rights - have you checked all settings (see post above)?
I tried to look into that file, could't find anything on forbidden macros though. Do you know what this variable is called?
I have also none entries about security in settings.ini. I think those entries will only set if anything became forbidden. For test you could remove this file (after backup) - the settings.ini will new create. I think other settings/access rights are wrong, possibly the path is wrong for the user and E: is here another source.
You were right! It was actually that simple that the user did have another path to E: on the network. Should have thought of that. Thanks!