- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¦^´_ 12# °a¤ªºµ
ÁÂÁºµ¤j,
µy·Lקï«á,ºI¨ú¸ê®Æ¥¿½T,½Ð°Ý:
1) §Ú¤£·QÃö³¬¨Ó·½ÀÉWorkbooks("¥]§÷³øªí.xlsx").Close False,¦ý·|µLªk°õ¦æ,¥B¨C°õ¦æ¤@¦¸´N¼W¥[¤GÄæ,ì¦]¬O¤°»ò¡H
2) ¬O§_¦]¬°³oÓFor I = 1 To 2: Columns(4).Insert , 2: Next I,¬°¤°»Ýn¼W¥[2Äæ©O?
3) §Ú¨S¬Ý¹L³oºØ¼gªk,½d³ò¬°¦ó¬O˵ۼg©O?Arr = Range("AK11:C2").FormulaR1C1Local
4) ¯à§_À°¦£µù¸Ñµ{¦¡ªº·N«ä?
·P¿E¤£ºÉ....
Range("E16:AJ25").ClearContents
Workbooks.Open ThisWorkbook.Path & "\" & "¥]§÷³øªí.xlsx"
For I = 1 To 2: Columns(4).Insert , 2: Next I
Arr = Range("AK11:C2").FormulaR1C1Local
Workbooks("¥]§÷³øªí.xlsx").Close False
Brr = Range("B16:AJ25")
For X = 1 To UBound(Arr, 1)
For Y = 1 To UBound(Brr, 1)
If Trim(Arr(X, 1)) = Trim(Brr(Y, 1)) Then
For E = 1 To UBound(Arr, 2)
If Arr(X, E) Like "*-*" Then
G = Split(Arr(X, E), "-")(1)
Brr(Y, E) = "=-" & G
ElseIf Arr(X, E) Like "*+*" Then
G = Split(Arr(X, E), "+")(1)
Brr(Y, E) = "=+" & G
End If
Next E
End If
Next Y
Next X
Range("B16:AJ25") = Brr |
|