ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¸ê®Æ¿é¤J¥X²{ĵ§iµøµ¡­n«ç»ò°±¤î?

¸ê®Æ¿é¤J¥X²{ĵ§iµøµ¡­n«ç»ò°±¤î?

·Q½Ð°Ý¤j¤j
§Ú¦bªí³æTextBox ³]¸m­Y¬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

¦^´_ 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

TOP

¦^´_ 2# mark15jill


    ¤j¤j~ §Ú«á¨Ó¬O¥ý§âÄæ¦ì³£¶ñ¤W¹w³]­È
   Åý¨Ï¥ÎªÌ§Y¨Ï§Ñ°O¶ñ¤W¼Æ­È
   ¤]¯à°÷¥ý¦³¸ê®Æ¹ïÀ³Äæ¦ì
   §Y¨Ï¨S¶ñ¤W¤]¤£·|¥X²{¿ù»~ (^¤f^)
Jared

TOP

¥»©«³Ì«á¥Ñ 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)

Q3.jpg


  ¦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

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD