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

[µo°Ý] ¦p¦ó¥[´¡¦æ¼Æ

[µo°Ý] ¦p¦ó¥[´¡¦æ¼Æ

ªþ¥ó¤¤¡AG¦ÜJÄæ¡A·íKÄæ(¶¡¶Z)ªºµ´¹ï­È¤p©óÀx¦s®æM4¤Î¤j©óÀx¦s®æL4¡A³£¦Û°Ê¦V¤U¥[´¡¦æ¼Æ¡A±N¨C¦æ¶¡¶Z(JÄæ)³£Åܬ°¥HM4¤¤ªº³]©w¡A¶¡¶Z·|¬O»¼¼W©Î»¼´î
ºñ¦â³¡¤À¬O¥Î¤H¤â¥[´¡¡A½Ð±Ð¤j¤j¡AVBA¦p¦ó¼g¤~¥i°µ¨ì³o®ÄªG¡AÁÂÁÂ!

TEST1.rar (388.53 KB)

¦^´_ 20# ­ã´£³¡ªL
©ú¥Õ¤F¡A·PÁ­㴣³¡ªL¤j¤j´`´`µ½»¤¡A¥Î¤ß«ü±Ð!

¦A½Ð±Ð¤j¤j¡A¥H¤U³o­Ó°ÝÃD¡Aªþ¥ó¨Ò¤l¬O¹ê®É±Nsheet1«ü©wªº¸ê®Æ¡A¤£Â_°O¿ý¨ìsheet2¡A½Ð±Ð¥i§_§ï¬°¹ê®ÉSAVE¨ìD:\VBA\°O¿ý.xlsxªºSheet1¤¤¡A¦ýD:\VBA\°O¿ý.xlsx¬O¤£¥´¶}ªº¡AÁÂÁÂ!
http://forum.twbts.com/thread-21903-1-2.html


test1.rar (18.67 KB)

TOP

¦^´_ 19# donod


ÁÙ­ì--§Ú³ookªº

­ì©l¸ê®Æ­n¥ý©ñ¦bSheet2

TOP

¥»©«³Ì«á¥Ñ donod ©ó 2019-7-12 17:50 ½s¿è

¦^´_ 18# ­ã´£³¡ªL
·PÁ­㴣³¡ªL¤j¤j¡A°õ¦æ³¡¥÷«Ü¦n¡A³B²z³t«×¶W§Ö!¥u¬OÁ٭줣¤F¡C

Xl0000599_v4.rar (18.64 KB)

TOP

¦^´_ 17# donod


´«³o­Ó:
Xl0000599_v3.rar (15.5 KB)

TOP

¦^´_ 16# ­ã´£³¡ªL
ÁÂÁ­㴣³¡ªL¦AÀ°§U¡A³B²z¦h¹L65536¦æ´N¤£¦æ

TOP

¦^´_ 14# donod


¥Î³o­Ó¶]¬Ý¬Ý:
Xl0000599_v2.rar (15.11 KB)

TOP

¦^´_ 14# donod


¨C¦¸¤Q¸U¦æ¥H¤W???
³B²z§¹°Ï¶¡«á¤SÅܦ¨´X¦æ???

¥H³o¼Æ¾Ú¶q, ¤W­±¨ºµ{¦¡ªÖ©w¤ÓºC¤F~~

TOP

¦^´_ 13# ­ã´£³¡ªL
·PÁ­㴣³¡ªL¤j¤j¡A¥i¥H¤F!¦]¦³«Ü¦hÀÉ®×­n³B²z¡A¨C¦¸¤Q¸U¦æ¥H¤W¡A¦³¨ÇÁÙ¦b¹B¦æ¤¤¡C¨S¦³¤j¤jÀ°§U¡A¤£¥i¯à§¹¦¨¡C¸U¤À·PÁÂ!

TOP

Sub TEST()
Dim xE As Range, i&, j&, Num(2), xR As Range, U(3), UK&
Num(0) = [N4]: Num(1) = [L4]: Num(2) = [M4]
Set xE = Cells(Rows.Count, "G").End(xlUp)
For i = xE.Row To 6 Step -1
    Set xR = Cells(i - 1, "G")
    U(1) = xR(2, 4):  U(2) = xR(1, 4):  U(0) = U(1) - U(2)
    If Abs(U(0)) <= Num(1) Or Abs(U(0)) >= Num(2) Then GoTo 101
    U(3) = Int(Abs(U(0)) / Num(0)) - 1
    If U(3) <= 0 Then GoTo 101
    xR(2, 1).Resize(U(3)).EntireRow.Insert
    xR.Resize(1, 3).Copy xR(2, 1).Resize(U(3), 3)
    For j = 1 To U(3)
        xR(j + 1, 4) = U(2) + Num(0) * j * IIf(U(0) >= 0, 1, -1)
    Next j
101: Next i
End Sub

Xl0000599.rar (14.58 KB)


=========================

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD