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

Variable, inputfields and vbscript

Goodmorning everyone,

I did a macro that reads some imputfields, reload the data and exports some excel objects.

The variable containing the date i will pass to the selections gives me some trouble. If the variable "today" is derived from an inputfield the variable is empty ...

Here is the script:

Sub Esporta

path = ActiveDocument.Evaluate("pathXLS")

' oggi = Year(Date) & Month(Date) & Day(Date)

oggi = ActiveDocument.Evaluate("oggi")

R1 = path & oggi & "_Riepilogo1.xls"

R2 = path & oggi & "_Riepilogo2.xls"

R3 = path & oggi & "_Riepilogo3.xls"

Set C1 = ActiveDocument.GetSheetObject("CH50")

Set C2 = ActiveDocument.GetSheetObject("CH51")

Set C3 = ActiveDocument.GetSheetObject("CH53")

ActiveDocument.Reload

C1.ExportBiff(R1)

C2.ExportBiff(R2)

C3.ExportBiff(R3)

End Sub


Thanks in advance for your reply

Labels (1)
0 Replies