- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2025-3-24

|
- Function zz(±ÃB, ±i¼Æ)
- Dim rng As Range, n&, r&, c&, b, x, i&
- r = ±i¼Æ.Row
- c = ±i¼Æ.Column
- b = Cells(1, c + 1).Resize(r - 1)
- Select Case ±ÃB
- Case 100: x = "A"
- Case 500: x = "B"
- End Select
- For i = 1 To UBound(b)
- If Left(b(i, 1), 1) = x Then n = i
- Next
- If n Then i = Mid(b(n, 1), Application.Find(x, b(n, 1), 2) + 1) Else i = 0
- zz = x & Format(i + 1, "0000000") & "-" & x & Format(i + ±i¼Æ, "0000000")
- End Function
½Æ»s¥N½X |
-
-
zz.zip
(14.04 KB)
|