Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Applying theme on Click of a Button

Dear All,

I was trying to apply theme on Button click with following Macro Code:

sub applytheme

set theme=ActiveDocument.GetSheetObject("CH01")

theme.ApplyTheme "forest.qvt"

msgbox"Theme Applied"

end sub

I am getting pop up message i.e Theme Applied but no theme on chart object.

Let me know If I am missing something.

Regards,

Balraj

1 Solution

Accepted Solutions
marcus_sommer

I think the path to the qvt is missing:

...

theme.ApplyTheme "C:\Users\YOURUSER\AppData\Roaming\QlikTech\QlikView\Themes\forest.qvt"

...

or wherever your qvt-files are stored.

- Marcus

View solution in original post

1 Reply
marcus_sommer

I think the path to the qvt is missing:

...

theme.ApplyTheme "C:\Users\YOURUSER\AppData\Roaming\QlikTech\QlikView\Themes\forest.qvt"

...

or wherever your qvt-files are stored.

- Marcus