Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

Qlikview Macro

Hi all,

first of all thanks for any help.

im writing a simple export macro and im not sure of how things work within qlikview Macro wise. ill write what I can as if this was word and highlight the qlikview parts that I don't know.

sub export

dim report as date

dim month as string

dim year as string

dim last month as string

report = inputbox("put in report date, 'dd/mm/yyyy')

month = month(report)

year = year(report)

lastmonth  = DateAdd("m", -1, month)

filter chart X on month

ActiveDocument.GetSheetObject("X").exportBitmapTofile blah/blah.png"

Clear all filters

hope that makes sense thanks

3 Replies
Clever_Anjos
Employee
Employee

samuel_brierley
Creator
Creator
Author

unfortunately this doesnt meet the requirements. but thanks for the response.

if you look i have the code to export the chart its filtering the chart on the month/year that i cant do in the macro.

Clever_Anjos
Employee
Employee

Actually you don´t filter a graph, but a field

ActiveDocument.Fields("z").SelectValues "201501"

will filter the data related to 201501