回復 2#GBKEE
感謝G大的幫忙
在下對程式還有些不懂
Private Sub OptionButton11_Click()
Dim p As Control, i As Integer, ii As Integer
With MultiPage2
Set p = .Pages(.Value).Controls(0)
End With
i = -1
With Frame5
For ii = 0 To .Controls.Count - 1
If .Controls(ii).Value Then i = ii: Exit For
Next
End With
With p
For ii = 0 To .Pages.Count - 1
.Pages(ii).Enabled = (i = ii)
Next
If .Pages.Count - 1 >= i Then .Value = i '此行的用途為何?
End With
End Sub作者: GBKEE 時間: 2014-8-21 20:00