Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
i would like to export a table to an excel file,
with the name of the table + today's date,
do you know how to do this?
thanks,
Nir
try this....
public function Export
set obj = ActiveDocument.GetSheetObject("EXPORT")
ActiveDocument.GetApplication.WaitForIdle
fileName = "ExportScreen_" & replace(replace(replace(date() & "_" & time(), "/", ""), ".", ""), ":", "") & ".xlsx"
ActiveDocument.GetApplication.WaitForIdle
obj.Export vFolder & fileName
end function
Hi, Nir, Good resources here.
still the same gibrish..
the oly thing i changed is the EXPORT to the object ID in the report
obj.Export vFolder & fileName // what is vFolder? should i create it?
it's a variable defining the path to export to
here's an example that uses a slightly different approach...same principle though
Thanks for your help!
I think i understand it now,
the thing is i need to implement this for users that QV by access point,
while this works only on desktop client
Okay - then, yes, there are a couple of constraints.
Most (probably safe to say all) macro scripts will not execute within the AJAX client.
If you need to utilize a macro from access point for users then you could use the IE Plugin with IE as your browser....or you could have them open the qvw from the server using the qlikview desktop client.