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

¤@­Ó²M³æÅçÃÒ°ÝÃD

¤@­Ó²M³æÅçÃÒ°ÝÃD

½Ð°Ý¦U¦ì¥ý¶i
§Ú¤U¦Cµ{¦¡½X¦³­þ¸Ì¿ù»~¶Ü?
¬°¦ó§Ú¿é¤J²M³æ¥H¥~ªº¤å¦r
µLªk¥X²{¿ù»~°T®§

With Selection.Validation
        .Delete
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:="=" & bb
        .IgnoreBlank = True
        .InCellDropdown = True
        .InputTitle = ""
        .ErrorTitle = ""
        .InputMessage = ""
        .ErrorMessage = ""
        .ShowInput = True
        .ShowError = True
    End With

¦^´_ 2# GBKEE


    ·PÁÂG¤jªº¦^ÂÐ
§Ú¥h¸Õ¸Õ¬Ý

TOP

¦^´_ 2# GBKEE


    ¦A½Ð°ÝG¤j¤@­Ó°ÝÃD
°}¦CBB(30)¤º30¥i¥H¬OÅܼƶÜ?

TOP

¦^´_ 5# GBKEE

½Ð°ÝG¤j§Ú°õ¦æ¨ì³o¤@¬q·|¥X²{¿ù»~
Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:="=" & bb
·|¥X²{¿ù»~

    Sub ²M³æ©ú²Ó()
If ActiveCell.Cells.Column <> "4" Then Exit Sub
aa = ActiveCell
If aa = "" Then Exit Sub

g = Worksheets("²M³æ©ú²Ó").Cells(65536, 1).End(xlUp).Row
For i = 1 To g
If Worksheets("²M³æ©ú²Ó").Cells(i, 1) = aa Then
b = 0
    For a = 4 To 34
        kk(b) = Worksheets("²M³æ©ú²Ó").Cells(i, a)
        b = b + 1
    Next a
bb = Join(kk, ",")

'bb = Worksheets("²M³æ©ú²Ó").Cells(i, 3)

ActiveCell.Cells(, 4).Select
Exit For
End If
Next i
With Selection.Validation
        .Delete
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:="=" & bb
        .IgnoreBlank = True
        .InCellDropdown = True
        .InputTitle = ""
        .ErrorTitle = ""
        .InputMessage = ""
        .ErrorMessage = ""
        .ShowInput = True
        .ShowError = True
    End With


End Sub

TOP

¦^´_ 5# GBKEE

½Ð°ÝG¤j
   ·|¤£·|¬O¦]¬°§Úªº°}¦C¸ê®Æ¤º¦³ªÅ­È
¦Óµo¥Íªº¿ù»~

TOP

¦^´_ 8# GBKEE


    ·PÁÂG¤jªº¼ö¤ß
À°§Ú¸Ñ¨MÃøÃD

TOP

¦^´_ 8# GBKEE


    ¦A½Ð°ÝG¤j¤@¤U
¬°¦ó§ÚªºÄµ§i°T®§¤£·|¥X²{


Sub ²M³æ©ú²Ó()

Dim bb, kk(30), aa
If ActiveCell.Cells.Column <> "4" Then Exit Sub

aa = ActiveCell
If aa = "Account Code " Then Exit Sub
If aa = "" Then Exit Sub
g = Worksheets("²M³æ©ú²Ó").Cells(65536, 2).End(xlUp).Row
For i = 1 To g
e = Worksheets("²M³æ©ú²Ó").Cells(i, 2)
If Worksheets("²M³æ©ú²Ó").Cells(i, 2) = aa Then

b = 0
j = Worksheets("²M³æ©ú²Ó").Cells(i, 34).End(xlToLeft).Column
    For a = 3 To j
        kk(b) = Worksheets("²M³æ©ú²Ó").Cells(i, a)
        b = b + 1
    Next a
bb = Join(kk, ",")
Exit For

End If
Next i
pp = Worksheets("²M³æ©ú²Ó").Cells(i, 3)
MsgBox pp, , "Account_Code»¡©ú"

ActiveCell.Cells(, 4).Select
ActiveCell = ""
With Selection.Validation
        .Delete
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:=bb
        .IgnoreBlank = True
        .InCellDropdown = True
        .InputTitle = ""
        .ErrorTitle = ""
        .InputMessage = ""
        .ErrorMessage = "You must enter a number from five to ten"
        .ShowInput = True
        .ShowError = True
    End With
Set kk(30) = Nothing
ActiveCell.Offset(, -5) = Date
ActiveCell.Offset(, 1) = Environ("UserName")
End Sub

TOP

¥»©«³Ì«á¥Ñ dafa ©ó 2012-1-17 08:29 ½s¿è

¦^´_ 11# GBKEE

«Ü©êºp»¡ªº¤£²M·¡
§Ú´ú¸ÕAccount CodeÄæ¦ì¿é¤J¿ù»~¸ê®Æ®É
¬°¦ó¥X²{ĵ§i°T®§®É¨S¦³¥X²{§Ú¿é¤Jªº¦r¦ê  
.ErrorMessage = "You must enter a number from five to ten"


ªþ¥ó¤w¤W¶Ç

2012-¦U·~°È­t³d¤H¥I´Ú©ú²Ó1.zip (388.96 KB)

TOP

¦^´_ 13# GBKEE


    ·PÁÂG¤jªº¸Ñµª
§Ú¤Sµo²{¤@­Ó°ÝÃD
´N¬O°}¦C¦r¤¸¤Ó¦h¨S¿ìªk¥þ³¡¶ë¤J²M³æ¤º
xlBetween, Formula1:=bb
¦³¤èªk¸Ñ¨M£v?

TOP

¦^´_ 15# GBKEE


    ·PÁÂG¤j¸Ô²Óªº¸ÑÄÀ
À°¤F§Ú«Ü¤jªº¦£
§A¯u¬O¦n¤H
:D

TOP

        ÀR«ä¦Û¦b : ¤£­n¤p¬Ý¦Û¤v¡A¦]¬°¤H¦³µL­­ªº¥i¯à¡C
ªð¦^¦Cªí ¤W¤@¥DÃD