- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 4# loveinput - Sub ipchange()
- Dim rng, arr, i%, m% '«Å§i¥|ÓÅܼÆ
- rng = Range(Sheets("¥~³¡¸ê®Æ").[a1], Sheets("¥~³¡¸ê®Æ").[a65536].End(xlUp)) 'ÅܼÆÈ=Äæ¦ìa1~a65536¤¤ªº©Ò¦³¦³È¸ê®Æ
- '*** rng: ¥~³¡¸ê®Æ").[a1]¥H¤U¨S¦³¸ê®Æ
- rng2 = Range(Sheets("¨Ó·½¸ê®Æ").[a1], Sheets("¨Ó·½¸ê®Æ").[c65536].End(xlUp)) 'ÅܼÆÈ=Äæ¦ìa1~a65536¤¤ªº©Ò¦³¦³È¸ê®Æ
- '*** rng2³oÅܼƳ]©w¤§«á¦A¤]¨S¦³¥Î¨ì,¬°¦ó??
- ReDim arr(1 To UBound(rng), 1 To 20) 'קï¤Gºû°}¦C¤j¤pMsgBox Val(rng)
- '*** UBound(rng) ¿ù»~-> rng: ¥~³¡¸ê®Æ").[a1]¥H¤U¨S¦³¸ê®Æ
- For i = 1 To UBound(rng) - 1 Step 1
- m = m + 1
- '*** Sheets("¨Ó·½¸ê®Æ").[h30] ¨S¦³¸ê®Æ, Terminal IP ªºµ{¦¡½X¿ù»~
- 'Terminal IP
- If Range(Sheets("¨Ó·½¸ê®Æ").[e1], Sheets("¨Ó·½¸ê®Æ").[h30]).Find(Val(Split(rng(i + 1, 1), ".")(1))).Column = 5 And IsOdd(Val(Split(rng(i + 1, 1), ".")(3))) Then
- arr(m, 3) = Split(rng(i + 1, 1), ".")(0) & "." & Split(rng(i + 1, 1), ".")(1) + 10 & "." & Split(rng(i + 1, 1), ".")(2) & "." & Split(rng(i + 1, 1), ".")(3) + 1
½Æ»s¥N½X |
|