¸ê®Æ¿é¤J¥X²{ĵ§iµøµ¡n«ç»ò°±¤î?
- ©«¤l
- 103
- ¥DÃD
- 30
- ºëµØ
- 0
- ¿n¤À
- 139
- ÂI¦W
- 0
- §@·~¨t²Î
- wondows XP
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¹ü¤Æ
- µù¥U®É¶¡
- 2013-2-21
- ³Ì«áµn¿ý
- 2015-6-26
|
¸ê®Æ¿é¤J¥X²{ĵ§iµøµ¡n«ç»ò°±¤î?
·Q½Ð°Ý¤j¤j
§Ú¦bªí³æTextBox ³]¸mY¬OªÅ¥Õ´N¥X²{ĵ§iµøµ¡
¦ý¥u¦³¹ï©ó²Ä¤@ÓÄæ¦ì¦³¥Î
¦pªG²Ä¤@Ó¶ñ§¹«á¸õ¹L²Ä¤GÓÅçÃҪťժºTextBox
ª½±µ¶ñ¤W²Ä¤TÓ¦A«öButton
·Ó¼Ë·|¶ñ¶i¥h¡Aĵ§iµøµ¡¤]·|¶]¥X¨Ó
¦³¨S¦³¿ìªkÅçÃÒ¸ê®Æ»ô¥þ«á¤~¶i¦æ¶ñ¤Jªº°Ê§@©O¡H
§Ú¼gªºµ{¦¡¦p¤U
¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×
Private Sub CommandButton1_Click()
Call test
End Sub
Sub test()
Dim A As Range
If Application.CountBlank(Sheet1.Range("A1:A99")) = 0 Then
Sheet1.[A100] = ComboBox1.Value
Else
Set A = [A3]
Do Until A = ""
Set A = A.Offset(1, 0)
Loop
A.Value = ComboBox1.Value
End If
If ComboBox1.ListIndex = -1 Then MsgBox "ªÅ¥Õ¥¼¶ñ¼g !!": Exit Sub
a1 = UserForm.TextBox1.Value
If Application.CountBlank([B1:B99]) = 0 Then Range("B100") = a1: Exit Sub
For Each A In [B3:B99]
If A = "" Then
A.Value = a1
Exit For
End If
Next
If .a1 = "" Then MsgBox "ªÅ¥Õ¥¼¶ñ¼g !!": Exit Sub
a2 = UserForm.TextBox2.Value
If Application.CountBlank([C1:C99]) = 0 Then Range("C100") = a2: Exit Sub
For Each A In [C1:C99]
If A = "" Then
A.Value = a2
Exit For
End If
Next
If .a2= "" Then MsgBox "ªÅ¥Õ¥¼¶ñ¼g !!": Exit Sub
End Sub |
|
Jared
|
|
|
|
|
¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
¦^´_ 1# Jared
«Øij...
§ËӹϤW¨Ó..
³o¼Ë¤ñ¸ûª¾¹DþºØĵ§iµøµ¡.. |
|
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
|
|
|
|
|
- ©«¤l
- 103
- ¥DÃD
- 30
- ºëµØ
- 0
- ¿n¤À
- 139
- ÂI¦W
- 0
- §@·~¨t²Î
- wondows XP
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¹ü¤Æ
- µù¥U®É¶¡
- 2013-2-21
- ³Ì«áµn¿ý
- 2015-6-26
|
¦^´_ 2# mark15jill
¤j¤j~ §Ú«á¨Ó¬O¥ý§âÄæ¦ì³£¶ñ¤W¹w³]È
Åý¨Ï¥ÎªÌ§Y¨Ï§Ñ°O¶ñ¤W¼ÆÈ
¤]¯à°÷¥ý¦³¸ê®Æ¹ïÀ³Äæ¦ì
§Y¨Ï¨S¶ñ¤W¤]¤£·|¥X²{¿ù»~ (^¤f^) |
|
Jared
|
|
|
|
|
¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
¥»©«³Ì«á¥Ñ mark15jill ©ó 2013-3-12 14:09 ½s¿è
¦^´_ 3# Jared
¬O§Ú¿ùı¶Ü..
«ç¤@°õ¦æ©pªºµ{¦¡´N¥X²{½sĶ¿ù»~
..............................................................................
§Úª¾¹DþÃä¥X¿ù¤F...
©pµ{¦¡¹B¦æ«á...
A1 A2 ®Ú¥»ªÅ¥Õ
³Ì«á¤@¦æ¤S
If a2 = "" Then MsgBox "ªÅ¥Õ¥¼¶ñ¼g !!": Exit Sub
·íµM·|¥X²{... |
-
-
Q3.jpg
(47.93 KB)
|
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
|
|
|
|
|