Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
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.
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.
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.....
Hi ,
Attaching excellent QV doc which i downloaded from Community . It may resolve your problem .
Cheers,
Bhushan N
That is absolutely fantastic, Thank you very much
Thanks Bhushan that is great
Can you please update the VBA script for the same.
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
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
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.