- ©«¤l
- 15
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 23
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- SP1
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2011-4-7
- ³Ì«áµn¿ý
- 2011-5-23
|
¦^´_ 9# Hsieh
§Ú·QÄ~Äò©µÄò¤W¦¸ª©¥D»¡ªº¸Ñ¨M¿ìªk
¤£¹Ln¥ýÁÂÁª©¥D, §Ú²×©óª¾¹D"¦WºÙºÞ²z"ªº¥\¥Î(2010)
¥t¤@Ó¤pºÃ°Ý¦b©ó, §Ú¬O§_¥i¥Hª½±µ¦bVBAªº¼Ò²Õ¸Ìª½±µ¤Þ¥Î³o¨Ç³]©w©O?
¦pªGn¤Þ¥Î³o¨Ç³]©w, À³¸Ón¥Î¤°»ò¤è¦¡¥h°µ¤Þ¥Î
§Ú¦³¸Õ¹L»s§@¤F¤@Ó¦W¬°Sales
Sales=INDEX(«È¤á¸ê®ÆºÞ²z!$A$2:$D$1000, MATCH(±M®×¬ö¿ý!$C$2:$C$1000, «È¤á¸ê®ÆºÞ²z!$A$2:$A$1000,0),4)
µM«á§Q¥Î¿ý»s¥¨¶°ªº¤è¦¡°O¿ý¿ý»s,
¤§©Ò¥H¤£Ä@·N, ª½±µ¦bÀx¦s®æª½±µ¤Þ¥Î, ¦p¤U¹Ï:
¬O¦]¬°¾ãÓÀÉ®×·|Åܫܤj, ¤]¤£¬üÆ[
¿ý¦nªº¾´®×ªø³o¼Ë
Sub ¥¨¶°1()
'
' ¥¨¶°1 ¥¨¶°
'
Range("D2").Select
ActiveCell.FormulaR1C1 = "=Sales"
Range("D3").Select
End Sub
µM«á§Ú§â¥¦§ï¨ì§Úªº¼Ò²Õ¸Ì
Sub ±M®×¬ö¿ý() 'Pro_Statu
Dim NewPro As Range
Dim PN As Range
Dim Cus As Range
Dim Sales_P As Range
Dim EnCus As Range
Sales_P.FormulaR1C1 = "=Sales"
With Worksheets("±M®×¬ö¿ý")
Set PN = .Columns(2).Cells.Find(Pro_Statu.Text_PN.Value, LookIn:=xlValues, Lookat:=xlWhole)
Set Cus = .Columns(3).Cells.Find(Pro_Statu.Combo_Cus.Value, LookIn:=xlValues, Lookat:=xlWhole)
Set EnCus = .Columns(12).Cells.Find(Pro_Statu.Text_EnCus.Value, LookIn:=xlValues, Lookat:=xlWhole)
If Not PN Is Nothing And Not Cus Is Nothing And Not EnCus Is Nothing Then
MsgBox "¸Ó«È¤á¤w¶}¥ß¦¹®×! ¦p±ýקï¡A½Ð¿ï¾Ü¬ö¿ýºûÅ@¡AÁÂÁ¡D", vbOKOnly + vbExclamation
Pro_Statu.Combo_Cus.SetFocus
Exit Sub
Else
Set NewPro = .Range("a65536").End(xlUp).Offset(0, 0)
NewPro.Offset(1, 0) = "Going"
NewPro.Offset(1, 1) = Pro_Statu.Text_PN
NewPro.Offset(1, 2) = Pro_Statu.Combo_Cus
NewPro.Offset(1, 3) = Sales_P
' NewPro.Offset(1, 4) = Qprice
' NewPro.Offset(1, 5) = Sprice
NewPro.Offset(1, 6) = Date
NewPro.Offset(1, 7) = Date
NewPro.Offset(1, 8) = Pro_Statu.Text_Model
NewPro.Offset(1, 9) = Pro_Statu.Combo_App
NewPro.Offset(1, 10) = Pro_Statu.Text_Qty
NewPro.Offset(1, 11) = Pro_Statu.Text_EnCus
NewPro.Offset(1, 12) = Pro_Statu.Combo_Cntry
NewPro.Offset(1, 13) = Pro_Statu.Text_Cap
NewPro.Offset(1, 14) = Pro_Statu.Text_Rev
NewPro.Offset(1, 15) = Pro_Statu.Text_Com
End If
End With
¤£¹L·|¤@ª½¶]¥X¿ù»~°T®§:
¦A³Â·Ð¤j¤j, 3Q |
|