Thanks. But I want that these tables are placed in the Container (please, see attach). If we click of first button - first tab will be displayed, second button - second tab will be displayed. Could you advice?
I have just tried a solution for the very same purpose and it has worked properly. Please find the sample code below. You can write as many copies of the same subprocedure as you need, by changing the name of the sub and the value of the MV_ActiveIndex variable so that you can attach each sub to a button, enabling your macros to be run when clicked on the relevant buttons.
Hope this helps.
set MV_ContainerObj = ActiveDocument.GetSheetObject("CT13") Set MV_ContProp = MV_ContainerObj.GetProperties MV_ActiveIndex2 = MV_ContProp.SingleObjectActiveIndex MV_ActiveIndex2 = 0 MV_ContProp.SingleObjectActiveIndex = MV_ActiveIndex2 MV_ContainerObj.SetProperties MV_ContProp