Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Automatic switching of sheets

I have a Qlikview model that displays information on a plasma screen. Currently this is all available on 1 sheet, but I need to display 1 sheet for say 3 minutes and the switch to 2nd sheet for 3 minutes then back to sheet 1.

Any ideas how this can be automated?

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Use VBScript macro, and you'll be able to use timer() to control your time-driven logic. The API syntax to activate a sheet is very simple - look it up in the API Guide.

View solution in original post

11 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Use VBScript macro, and you'll be able to use timer() to control your time-driven logic. The API syntax to activate a sheet is very simple - look it up in the API Guide.

Not applicable
Author

Take a look at the 'now' function which returns the current time; by using the 'minute' function with it you should be able to condition the sheet display.

This may thrash the server though as it will be constantly checking the time.....

Not applicable
Author

Hi ,

Attaching excellent QV doc which i downloaded from Community . It may resolve your problem .

Cheers,

Bhushan N

Not applicable
Author

That is absolutely fantastic, Thank you very much

Not applicable
Author

Thanks Bhushan that is great

Not applicable
Author

Can you please update the VBA script for the same.

Not applicable
Author

Hi davesargeant,

Please find the below macro:

Sub SwitchTab
For x = 0 to 5
ActiveDocument.ActivateSheet x
ActiveDocument.GetApplication.Sleep 1000
ActiveDocument.GetApplication.WaitForIdle                   
next
End Sub

Regards,

Snehal Nabar

Not applicable
Author

Hi Snehal,

It sound making sense. But way complicated to a newbie like me.

Would u mind to provide a simple sample code?

Appreciate your help very much

Not applicable
Author

Is there a way to set this up as a loop?

I have it working but it only switches sheets one time and then stops.