Yes, it's possible to run VB Script during script load. There are certain restrictions for accessing the contents of the QlikView document, mainly targetting objects under ActiveDocument. For accessing external sources it should be fine though. Not sure if there are better ways to query an AD using some kind of ODBC driver or similar.
Im trying to download all of the Active Directort Groups and their subsets
I have VBA code that works fine in exce, but I cnat get it to work in the load..
Dim objGroup, objExcel, iRow, strUser, iColumn
Dim X As String
Do While ActiveCell.SpecialCells(xlCellTypeLastCell).Column + 1 > ActiveCell.Column
On Error Resume Next
Set objGroup = GetObject("LDAP://CN=" & X & ",ou=Qlikview Groups, ou=groups,ou=Users & Groups,dc=Test,dc=com")
For Each strUser In objGroup.Member
Set objUser = GetObject("LDAP://" & strUser)
Set objExcel = Nothing
Set objGroup = Nothing