Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Applying Theme with Macro

Hi,

          Can any one explain to apply theme with the help of a button using macro for both sheet object and sheet..

Regards,

Guruprasth M

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Yes there is a macro code by which you can achieve this. They are.

Document   -  ActiveDocument.ApplyTheme "A:\Forest.qvt"


Sheet      -  ActiveDocument.ActiveSheet.Applytheme "A:\Forest.qvt"


Object     -  set obj = ActiveDocument.GetSheetObject("CH01")

                  obj.ApplyTheme "Forest.qvt"

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi,

          Thanks, but it is applied before we click the button..is there any option for making the theme deactivate and then by clicking the button so the theme can be re applied??

Regards,

Guruprasath M

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   How did you use the above statements.

   Can you please upload the qvw file.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi,

          Ya sure I will attach my file..

Thanks,

Guruprasath M