返回列表 上一主題 發帖

[發問] 核取方塊和選項鈕的疑問?

Private Sub confirm_Click()
    o = IIf(Me.OptionButton1.Value = True, Me.OptionButton1.Caption, Me.OptionButton2.Caption)
    For i = 4 To 7
        If Me.Controls("CheckBox" & i).Value = True Then t = Me.Controls("CheckBox" & i).Caption: Exit For
    Next
    With Sheets("客戶資料")
        .[a65536].End(3)(2, 1).Resize(, 4) = Array(cust.Text, phone.Text, o, t)
    End With
    Unload Me
End Sub

TOP

        靜思自在 : 【做人的開始】每一天都是故人的開始,每一個時刻都是自己的警惕。
返回列表 上一主題