Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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