Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I have a conteiner with three tables and beside one selection box.
I wanna see in this selection box, only the fields regarding with the respective table.
I think the best option would be creating three diferents slection box knowing wich table is active and hiding the other two selection box.
Is that makes sense or has another easier way?
In case not, how can I know wich table is current being showed to the user?
Best
Robson
Hi.
You can get the current selected object with the macro:
Set ContainerObj = ActiveDocument.GetSheetObject("CT01")
set ContProp=ContainerObj.GetProperties
ActiveObject=ContProp.SingleObjectActiveIndex
msgbox("Active Object=" & ActiveObject & " Id=" & ContProp.ContainedObjects.Item(ActiveObject).Id)
But It seems there is no suitable trigger to use it.
You'd better to use separate objects and emulate the container logic with variables. So that you can use the same conditions to show the appropriate listbox.