I have a userform that has a multipage with two tabs.

I have set the TabIndex of all of the controls on the userfrom. given the layout of each tab the userform is coded to change size depending on the tab selected. (this works with a mouse click)

If the user cycles through the controls with tab key and highlights the multipage tab and then presses the arrow key to change the tab the userform does not change size.

How do I trap for the arrow keys if one of the multipage tabs has been highlighted?

I want to run my sizing code if the user has highlighted the multipage tab and then pressed the left or right arrow keys.