Hi,
In a usefrom a have a multipage with 7 pages.
In page 5, 6 and 7 there is a combobox and they populate from the same range in sheet1 (working fine).
I want combobox in page 5, 6 and 7 will show the same item/row when I go back and forth between these tre pages.
Its not workning,
Thansk for hep,
In a usefrom a have a multipage with 7 pages.
In page 5, 6 and 7 there is a combobox and they populate from the same range in sheet1 (working fine).
I want combobox in page 5, 6 and 7 will show the same item/row when I go back and forth between these tre pages.
Its not workning,
Thansk for hep,
VBA Code:
Dim MyIndex As Integer ' in UserForm_Initialize()
'----------------------------------
Private Sub Page5ComboBox1_Change()
MyIndex = Page5ComboBox1.ListIndex
End Sub
Private Sub Page6ComboBox1_Change()
MyIndex = Page6ComboBox1.ListIndex
End Sub
Private Sub Page7ComboBox1_Change()
MyIndex = Page7ComboBox1.ListIndex
End Sub
'----------------------------------
Private Sub MultiPage1_Change()
Select Case MultiPage1.SelectedItem.Index
Case 4 ' = Page5
Page5ComboBox1.ListIndex = MyIndex
Case 5 ' = Page6
Page6ComboBox1.ListIndex = MyIndex
Case 6 ' = Page7
Page7ComboBox1.ListIndex = MyIndex
End Select
End Sub
'----------------------------------