03-24-2017 03:45 AM
Hi,
I have a script which loads a TDV. This TDV has many tabs. How can I force a certain tab to be displayed in View? I have tried this (without success): -
View.Sheets("Home").activate
View.AutoRefresh = true
View.Refresh
call WndShow("View")
'Home' is the name of the sheet I want to be displayed. The above script selects the 'View' panel, but opens the wrong tab. I cannot find the commands to open the correct tab. I use Diadem 2015. Any help is much appreciated.
Thanks!
Thomas
Solved! Go to Solution.
03-24-2017 10:49 AM
Hello Thomas,
This code works for me:
Call WndOpen("VIEW") Call View.Sheets("Home").Activate
I tried this in DIAdem 2017 Beta 5, but that should work in earlier versions of DIAdem just as well. Please make sure that the sheet name doesn't include a space or other characters, if I add a space to "Home " (at the beginning or end) the command fails.
If you continue to have issues, can you post the VIEW layout for me to test?
Otmar
03-27-2017 01:52 AM
Hi Otmar,
It works. Thanks for the support!
Regards
Thomas