Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Need to change active object in the container by using macro.
There are four charts in the container object viz.,Yearly,Half-Yearly,Quarterly,Monthly.
Time Format,selection list box contains Yearly,Half-Yearly,Quarterly,Monthly as possible values.
depending upon selection in the list box, active object of the container should change.
I've gone through the APIGuide app for the same and found the below code:
Set ContainerObj = ActiveDocument.GetSheetObject("CT01")
set ContProp=ContainerObj.GetProperties
ActiveObject=ContProp.SingleObjectActiveIndex
ActiveObject is giving the index of currently active object in the container.
I can also assign value to this property Like,
ContProp.SingleObjectActiveIndex=0 i.e. 1st object should get active.
but this script does not server the purpose.
need urgent help on this.
I also had the same requirement ..
I did lot r&d, but did not found any property which gives me currently "clicked" tab of the container object..
hence settled down with above approach...
but it fulfils my requirement..
if u get any workaround.. pls let me know..
Regards,
Sparten
Hi,
Of course, I'll let you know/
Listen, I tried to "cheat" QV:
I removed one of the objects (say ListBox) from the container, and placed it in the same tab sheet the container is. Then I chose settings->sheet properties->objects->selected the List Box outside the container. There I noticed that this object inherited the trigger that I already assigned to the container. In the end, I returned this LB to the container - but still it does'nt work.
I believe they will fix it in one of the next SRs.
I'm trying to find a way to report this bug to them.
Regards,
Yigal
Hi
sheet properties -> Triggers(Tab) -> Sheet Object Event Triggers
Where is that? I only have Sheet Event Triggers
Hi,
In QV11 - select a sheet which contains a container object, then sheet->properties->objects(select the container object)->triggers...
But still the trigger works only when the container is activated, not when you select a tab in the container.
I still only see sheet triggers, not object...


Right, although u can select an object, the trigger stil belongs to the sheet. Thats the problem.
Yigal Douchan
Try moving to QV SR2, which has just been released.