Need urgent help!

SelectedTab cannot be set before the pane has been added to a panes collection I have closed down and reopened my 2010 Window and 2021 Trados but nothing helps. Have been occupied with this for hours today. How shall I solve this????  Edith Oldenburg