返回列表 上一主題 發帖

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

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

本帖最後由 q1a2z5 於 2011-4-27 14:27 編輯

一份簡單客戶資料是由鍵入方式來建置的,現在想增加性別欄(用核取方塊)及地區[欄(用選項鈕方式)來建資料,
不知要如何更改呢?

謝謝!

客戶資料.rar (11.13 KB)

地區可以複選?
學海無涯_不恥下問

TOP

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

        靜思自在 : 要用心,不要操心、煩心。
返回列表 上一主題