- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# v03586
¸Õ¸Õ¬Ý- Option Explicit
- Private Sub CommandButton1_Click()
- Dim Rng As Range, Ar(1 To 2), i As Integer
- Ar(1) = Array(OptionButton1, OptionButton2, OptionButton3) ', OptionButton4, OptionButton5, OptionButton6....
- Ar(2) = Array(TextBox1, TextBox2, TextBox3, TextBox4, TextBox5) ', TextBox6, TextBox7, TextBox8, TextBox9....
-
- 'Join ¨ç¼Æ ¶Ç¦^¤@Ó¦r¦ê¡A¸Ó¦r¦ê¬O³z¹L³sµ²¬YÓ(¤@ºû)°}¦C¤¤ªº¦hÓ¤l¦r¦ê¦Ó«Ø¥ßªº¡C
- If InStr(UCase(Join(Ar(1), "")), "TRUE") = 0 Or InStr(Join(Ar(2), ","), ",,") Then
- MsgBox ("¸ê®Æ¥¼¿é¤J§¹¾ã¡A ¡y * ¡z ¥²¶·¿é¤J" & vbCrLf & _
- "Data is not enter the full , ¡y * ¡z you must fill ")
- Exit Sub
- End If
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Set Rng = Sheets("FMC Input Database").Range("a" & Rows.Count).End(xlUp).Offset(1)
- With Rng 'ª«¥óRng : ©Ò«ü©wªºÀx¦s®æ©ÎÀx¦s®æ½d³ò¡C(¤£¥²²¾°Ê¤u§@¶)
- For i = 0 To UBound(Ar(1))
- If Ar(1)(i).Value Then
- 'Caption ÄÝ©Ê ¥X²{¦bª«¥ó¤Wªº×¹¢¤å¦r , ¤@¯ë¥Î¨Ó¿ëÃѩδyz¸Óª«¥ó
- .Value = Ar(1)(i).Caption
- Exit For
- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- End If
- Next
- '.Range("B1")->³oRng ªº Àx¦s®æ©ÎÀx¦s®æ½d³ò¡C
- .Range("B1").Resize(, UBound(Ar(2)) + 1) = Ar(2)
- .Range("G1") = Now
- ''''''''''''''''''''''''''''''''''''''''''''
- End With
- End Sub
½Æ»s¥N½X |
|