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

[µo°Ý] ¥H¦r¨å¤è¦¡»s§@¾lÃB©ú²Óªí

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-22 10:50 ½s¿è

¦^´_ 14# shuo1125


    ¦]¬°KÄæ°µ¹ïÀ³¥i¯à¤£¨c¾a,»Ý­n§ó¦hÅçÃÒÀˬd
¥H¤U³o°ÝÃD¤]¬O¤â»~?ÁÙ¬O¨t²Î¼´¸ê®Æ´N¿ù?
¥ß±b KÄ榳¸¹½X
ÁÙ¬O¨ä¥L¦]¯À?

¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¥»©«³Ì«á¥Ñ shuo1125 ©ó 2023-3-22 10:46 ½s¿è

¦^´_ 13# Andy2483
Andy¤j¦n!
¸Óµ§¬O¥ß±b¡A«á­±ªºTÄæ¿ù¤F.....¡A©Ò¥HKÄ椣·|¦³¨R¾P½s¸¹¡C
(1821¨Ó¬Ý¡A¸Óµ§´Áªì¬O­É¾l¬°¥ß±b¡A¶U¾l®É¨R±b¡F2143´Áªì¶U¾l«h¤Ï¤§¡A¶U¾l¬°¥ß±b¡A­É¾l¬°¨R±b¡C)

¥H¤W¡A§A¯uªº«Ü²Ó¤ß...ÁÂÁ§A¤£§[¨ä·Ðªº¦^ÂÐ!!

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-22 10:36 ½s¿è

¦^´_ 12# shuo1125


    TÄæ ¨R±b ¹ïÀ³KÄæ(³Æµù)¬OªÅ®æ,¦Ó¤£¬O ¸¹½X(¶Ç²¼½s¸¹-§Ç)¥Nªí¤°»ò·N«ä?



½Ð«e½ú¬dÃÒ¤@¤UKÄæ³ÆµùÄæ¬O§_³£¥u©ñ ¶Ç²¼½s¸¹-§Ç(¨R¾P¸¹½X)
  >¨R¾P®É©ñªºKÄ楲©w¬°¶Ç²¼½s¸¹-§Ç¡C
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¥»©«³Ì«á¥Ñ shuo1125 ©ó 2023-3-22 10:04 ½s¿è

¦^´_ 9# Andy2483
Andy¤j¦n!
1.¬O¥H(¹ô§O + ¶Ç²¼½s¸¹-§Ç)¬üª÷¨R¾P¬üª÷,¥x¹ô¨R¾P¥x¹ô¶Ü?
  >¥~¹ô¨R¾P¥~¹ô¡A¥x¹ô¨R¾P¥x¹ô¡C
2.µ²ªGªíªºSÄæ­ì¹ô¾lÃB Á`¦X­p¦³·N¸q¶Ü? «O¯d¦X­p©Î¨ú®ø¦X­p?
  >­ì¹ô¼Æ¤£»Ý­n¥[Á`¡A¦]¬°·|¦³¹ô§O¤£¦Pªºª¬ªp(·|»Ý­n¦¹Äæ¦ì¬O¦]¬°­nª¾¹D­ì¹ô³Ñ¦h¤Ö)
PS:­ì¹ô¾lÃB¥i¯à¦³¦hºØ¹ô§Oªº¾lÃB,¬Û¥[³Q¤Þ¥Î³ô¼{
  >½T¹ê¬O...¦h¹ô§O®É¨R¾P·|ªí¹F¤£¦P¹ô§O¨R¾P¡C(¨Ò:¥ß±b½s¸¹11112 USD1,246 NTD38,003 ¨R±b®É¸ê°T¬°KÄæ11112 USD1,246 NTD38,003)
     ½Ð¬Ý¹ÏC¡A»Ý¹ïÀ³¹ô§O¨R¾P¡C

(½Ð¬Ý¹ÏD¡A¥H1821¨Ó¬Ý¡A¸ê®Æ°Ï³Ì«á¾lÃB7,407,492·|µ¥©ó¬ì¥Ø¾lÃBªº7,407,492)
¥H¤W¡A§Ú¬O¥H´Áªì¼Æ+¥»¦~©ú²Ó°µ¡A©Ò¥H¨R¾P®É´N¦C¦b¦U¤ë¸Ì´N¦n¡A¹ï¦P¹ô§O¶i¦æ¨R¾P(³Ì«á¬ì¾l¾lÃB·|µ¥¦P©ó¸ê®Æ°Ï¦U¬ì¥Ø³Ì«áªº¾lÃB¡C)

±Ô­z¤£²M½Ð¦A½Ð²z¸Ñ...·PÁ¦U¦ì¬Û§U!!

¹ÏC.PNG (31.41 KB)

¹ÏC.PNG

¹ÏD.PNG (317.22 KB)

¹ÏD.PNG

TOP

¦^´_ 8# Andy2483
Andy¤j¤j¦n!

1.¥¿©Ò¿×·í§½ªÌ°g,¸Ñ½d¨Ò¤~ª¾½d¨Ò°ÝÃD¦b­þ¸Ì
  >·PÁ§AªºÅé½Ì...
2.«e½ú¦h¼{¤F,¨Ã¨S¦³®ö¶O®É¶¡,«á¾Ç¦b½×¾Â¤W¦b¦¹©«¤W¾Ç²ß¨ì«Ü¦hª¾ÃÑ
  >±zªº¨Dª¾ºë¯«½T¹ê­È±o®Ä¥é¡A³o¸Ì«Ü¦h¼ö¤ßªº°ª¤â¡A¦ý§Úµ{«×§C¸¨¡A¶È¯à¬Ý¬Ý¸ÕµÛ²z¸Ñ¼gªk.....
3.´N«á¾Çªº»{ª¾»P¸gÅç,³ÆµùÄæÄÝ©óÂø¶µÄæ¦ì,°µ¬°ÃöÁä¦rÄ榳«Ü¦hºÃ¼{,
  >¬O....¦ý¦]²{¦æ¨S¦³¯S®í¯àµù°OªºÄæ¦ì¡A¨î¦¡ªº¨t²Î¤SµLªk·s¼WÄæ¦ì¡A©Ò¥H¤~·|¶ñ¦b³Æµù...¦ý°ò¥»¤W¤@©w¬O³æµ§¹ï¨R¡C
     ­Y¬O5½Xªº(¨Ò:11101)¡A¥uºÞ¨ä¨R¾P«áªºª÷ÃB¡C
½Ð«e½ú¬dÃÒ¤@¤UKÄæ³ÆµùÄæ¬O§_³£¥u©ñ ¶Ç²¼½s¸¹-§Ç(¨R¾P¸¹½X)
  >¨R¾P®É©ñªºKÄ楲©w¬°¶Ç²¼½s¸¹-§Ç¡C
¥H¤W¡A¦hÁ§Aªº­@¤ß¦^´_!!!

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-22 09:05 ½s¿è

¦^´_ 7# shuo1125

1.¬O¥H(¹ô§O + ¶Ç²¼½s¸¹-§Ç)¬üª÷¨R¾P¬üª÷,¥x¹ô¨R¾P¥x¹ô¶Ü?

2.µ²ªGªíªºSÄæ­ì¹ô¾lÃB Á`¦X­p¦³·N¸q¶Ü? «O¯d¦X­p©Î¨ú®ø¦X­p?
PS:­ì¹ô¾lÃB¥i¯à¦³¦hºØ¹ô§Oªº¾lÃB,¬Û¥[³Q¤Þ¥Î³ô¼{

Option Explicit
Sub TEST_¹ô§O_¶Ç²¼½s¸¹§Ç()
Application.DisplayAlerts = False
Dim Brr, A, Y, Z, Yk, T2$, T3$, T8$, T11$, T12$, S1$, S2$
Dim x%, C%, N&, i&, P&, Crr(1 To 1000, 1 To 20)
Set Y = CreateObject("Scripting.Dictionary")
Z = Array(, 4, 8, 10, 12, 14, 16, 15, 17)
Brr = Sheets("¸ê®Æ°Ï").UsedRange
For i = 2 To UBound(Brr)
   T2 = Brr(i, 2): T3 = Brr(i, 3)
   S1 = T2 & "|" & T3: Y(S1 & "/b") = T2: Y(S1 & "/c") = T3
   A = Y(S1)
   If Not IsArray(A) Then A = Crr
   T8 = Brr(i, 8): T11 = Brr(i, 11): T12 = Brr(i, 12)
   If T11 Like "#####*" = False Then
      N = Y(S1 & "|r"): N = N + 1: Y(S1 & "|r") = N
      S2 = T8 & "|" & T12: Y(S2) = N
      For x = 1 To 4: A(N, x) = Brr(i, Z(x)): Next
      For x = 5 To 6
         A(N, x) = Brr(i, Z(x)) + Brr(i, Z(x + 2))
         A(N, x + 14) = A(N, x)
      Next
      Y(S1) = A: GoTo i01
   End If
   C = Format(Brr(i, 4), "M") + 6
   S2 = T11 & "|" & T12
   A(Y(S2), C) = Brr(i, 16) + Brr(i, 17)
   A(Y(S2), 20) = A(Y(S2), 20) - A(Y(S2), C)
   P = Brr(i, 14) + Brr(i, 15)
   A(Y(S2), 19) = A(Y(S2), 19) - P
   Y(S1) = A
   
i01:
Next
'====================================
For Each Yk In Y.keys
   If IsArray(Y(Yk)) Then
      On Error Resume Next
      Sheets(Val(Yk) & "").Delete
      On Error GoTo 0
      Sheets("¬ì¥Ø¾lÃBªí").Copy Before:=Sheets(1)
      With Sheets(1)
         .Name = Val(Yk)
         .UsedRange.Offset(5, 0).Delete
         With .[A5].Resize(Y(Yk & "|r"), 20)
            .Value = Y(Yk)
            Intersect([E:T], .Cells).NumberFormatLocal = _
            "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
         End With
         .[C3] = Y(Yk & "/c")
         .[C3] = .[C3] & "¡m" & Y(Yk & "/b") & "¡n"
         N = .Cells(Rows.Count, "F").End(3).Row
         With .Cells(N + 1, "F").Resize(1, 15)
            .Value = "=SUM(F5:F" & N & ")"
            If .Item(14) <> .Item(15) Then .Item(14) = "NA"
         End With
      End With
   End If
Next
Set Y = Nothing: Erase Brr, Crr, Z, A
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-22 08:26 ½s¿è

¦^´_ 7# shuo1125


    ¥HKÄæ³ÆµùÄæ³£¥u©ñ ¶Ç²¼½s¸¹-§Ç(¨R¾P¸¹½X)ªº±¡¹Ò¤U°µ¦r¨å¹ï·Ó¸Ñ¨M¤è®×¦p¤U,
½Ð«e½ú°Ñ¦Ò

KÄæ³ÆµùÄæ(¶Ç²¼½s¸¹-§Ç)¨R¾PHÄæ(¶Ç²¼½s¸¹-§Ç),¤@¹ï¦h¹ï¨R¾P¬O¤°»ò³W«h??



Option Explicit
Sub TEST()
Application.DisplayAlerts = False
Dim Brr, A, Y, Z, Yk, T2$, T3$, T8$, T11$, S1$
Dim x%, C%, N&, i&, P&, Crr(1 To 1000, 1 To 20)
Set Y = CreateObject("Scripting.Dictionary")
Z = Array(, 4, 8, 10, 12, 14, 16, 15, 17)
Brr = Sheets("¸ê®Æ°Ï").UsedRange
For i = 2 To UBound(Brr)
   T2 = Brr(i, 2): T3 = Brr(i, 3)
   S1 = T2 & "|" & T3: Y(S1 & "/b") = T2: Y(S1 & "/c") = T3
   A = Y(S1)
   If Not IsArray(A) Then A = Crr
   T8 = Brr(i, 8): T11 = Brr(i, 11)
   If T11 Like "#####*" = False Then
      N = Y(S1 & "|r")
      N = N + 1
      Y(S1 & "|r") = N
      Y(T8) = N
      For x = 1 To 4: A(N, x) = Brr(i, Z(x)): Next
      For x = 5 To 6
         A(N, x) = Brr(i, Z(x)) + Brr(i, Z(x + 2))
         A(N, x + 14) = A(N, x)
      Next
      Y(S1) = A
      GoTo i01
   End If
   C = Format(Brr(i, 4), "M") + 6
   A(Y(T11), C) = Brr(i, 16) + Brr(i, 17)
   A(Y(T11), 20) = A(Y(T11), 20) - A(Y(T11), C)
   P = Brr(i, 14) + Brr(i, 15)
   A(Y(T11), 19) = A(Y(T11), 19) - P
   Y(S1) = A
   
i01:
Next
'====================================
For Each Yk In Y.keys
   If IsArray(Y(Yk)) Then
      On Error Resume Next
      Sheets(Val(Yk) & "").Delete
      On Error GoTo 0
      Sheets("¬ì¥Ø¾lÃBªí").Copy Before:=Sheets(1)
      With Sheets(1)
         .Name = Val(Yk)
         .UsedRange.Offset(5, 0).Delete
         With .[A5].Resize(Y(Yk & "|r"), 20)
            .Value = Y(Yk)
            Intersect([E:T], .Cells).NumberFormatLocal = _
            "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
         End With
         .[C3] = Y(Yk & "/c")
         .[C3] = .[C3] & "¡m" & Y(Yk & "/b") & "¡n"
         N = .Cells(Rows.Count, "F").End(3).Row
         With .Cells(N + 1, "F").Resize(1, 15)
            .Value = "=SUM(F5:F" & N & ")"
         End With
      End With
   End If
Next
Set Y = Nothing: Erase Brr, Crr, Z, A
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 7# shuo1125


    ÁÂÁ«e½ú¦^´_
1.¥¿©Ò¿×·í§½ªÌ°g,¸Ñ½d¨Ò¤~ª¾½d¨Ò°ÝÃD¦b­þ¸Ì
2.«e½ú¦h¼{¤F,¨Ã¨S¦³®ö¶O®É¶¡,«á¾Ç¦b½×¾Â¤W¦b¦¹©«¤W¾Ç²ß¨ì«Ü¦hª¾ÃÑ

3.´N«á¾Çªº»{ª¾»P¸gÅç,³ÆµùÄæÄÝ©óÂø¶µÄæ¦ì,°µ¬°ÃöÁä¦rÄ榳«Ü¦hºÃ¼{,
½Ð«e½ú¬dÃÒ¤@¤UKÄæ³ÆµùÄæ¬O§_³£¥u©ñ ¶Ç²¼½s¸¹-§Ç(¨R¾P¸¹½X)
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¥»©«³Ì«á¥Ñ shuo1125 ©ó 2023-3-21 21:21 ½s¿è

¦^´_ 6# Andy2483
Andy2483¤j¦n!
§Úµo²{¨ä¹ê¬O¤W¶Çªº¼ÒÀÀµ²ªG¤Î¸ê°T°Ï¬Ò¦³¿ù»~¡A©Ç¤£±o·í®É·Ç¤j·|»¡¦³°ÝÃD...
§A°w¹ï¿ùªº¸ê°TÁٯవ¥X¹ïÀ³ªºµ²ªG..
ªþ¤W¥¿½T¤§ª©¥»..®ö¶O¤F¤j®aªº®É¶¡...¦b¦¹»¡Án©êºp!!
¹w­p²£¥Xªºµ²ªG¬°¦ÜºI¤î¤é¤î¥ß±b-¨R±b«á©ú²Óªº¾lÃB¡A¨R±b®ÉKÄæµù°Oªº½s¸¹°ò¥»¤W·|¤@¹ï¤@¨R¾P¡C
(½d¨Ò¬ì¥Ø¬°2­Ó¡A¹ê»Ú¤W·|¦³¦h­Ó..©Ò¥H¤~·Q»¡¥H®Mªí¨Ó²£¥X¦U¬ì¥Ø¡C)

TEXT20230318-2.zip (34.39 KB)

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-3-21 14:03 ½s¿è

¦^´_ 3# shuo1125


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹¥DÃD½m²ß°}¦C»P¦r¨åªº¸Ñ¨M¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

Option Explicit
Sub TEST()
Application.DisplayAlerts = False
Dim Brr, A, Y, Z, Yk, T$, T2$, T3$, T9$, T10$, S1$, S2$
Dim x%, C%, N&, i&, P&, B(3), Crr(1 To 1000, 1 To 20)
Set Y = CreateObject("Scripting.Dictionary")
Z = Array(, 4, 8, 10, 12, 14, 16, 15, 17)
Brr = Sheets("¸ê®Æ°Ï").UsedRange
For i = 2 To UBound(Brr)
   T2 = Brr(i, 2): T3 = Brr(i, 3)
   S1 = T2 & "|" & T3: Y(S1 & "/b") = T2: Y(S1 & "/c") = T3
   A = Y(S1)
   If Not IsArray(A) Then A = Crr
   T9 = Brr(i, 9)
   B(1) = Mid(T9, 1, 3): B(2) = Mid(T9, 4, 2): B(3) = Mid(T9, 6, 2)
   B(0) = B(1) & "." & B(2) & "." & B(3) & "#" & Val(Mid(T9, 8))
   T10 = Brr(i, 10)
   If T10 Like "¨R*" = False Then
      N = Y(S1 & "|r")
      N = N + 1
      Y(S1 & "|r") = N
      S2 = B(0) & "-" & T10:  Y(S2) = N
      For x = 1 To 4: A(N, x) = Brr(i, Z(x)): Next
      For x = 5 To 6
         A(N, x) = Brr(i, Z(x)) + Brr(i, Z(x + 2))
         A(N, x + 14) = A(N, x)
      Next
      Y(S1) = A
      GoTo i01
      ElseIf T10 Like "*¤ë±b´Ú" Then
         B(0) = Mid(Split(T10, "¤ë")(0), 2)
         B(0) = B(0) & Replace(T10, "¨R", ".#0-")
         B(0) = Replace(B(0), "¤ë±b´Ú", "À³¥I±b´ÚÁ`ÃB")
      ElseIf T10 Like "¨R###/*#/*#*" Then
         B(1) = Mid(T10, 2, 4)
         B(2) = Format(Split(Mid(T10, 6), "#")(0), "MM/DD")
         B(3) = "#" & Split(T10, "#")(1)
         B(0) = Replace(B(1) & B(2) & B(3), "/", ".")
      ElseIf T10 Like "¨R?????*  ###/*#/*#" Then
         B(0) = Split(Mid(T10, 3), "  ")
         B(1) = Mid(Brr(i, 11), 1, 3)
         B(2) = "." & Mid(Brr(i, 11), 4) & ".#0-"
         B(3) = B(0)(0) & "  " & B(0)(1)
         B(0) = B(1) & B(2) & B(3)
   End If
   C = Format(Brr(i, 4), "M") + 6
   A(Y(B(0)), C) = Brr(i, 16) + Brr(i, 17)
   A(Y(B(0)), 20) = A(Y(B(0)), 20) - A(Y(B(0)), C)
   P = Brr(i, 14) + Brr(i, 15)
   A(Y(B(0)), 19) = A(Y(B(0)), 19) - P
   Y(S1) = A
   
i01:
Next
'====================================
For Each Yk In Y.keys
   If IsArray(Y(Yk)) Then
      On Error Resume Next
      Sheets(Val(Yk) & "").Delete
      On Error GoTo 0
      Sheets("¬ì¥Ø¾lÃBªí").Copy Before:=Sheets(1)
      With Sheets(1)
         .Name = Val(Yk)
         .UsedRange.Offset(5, 0).Delete
         With .[A5].Resize(Y(Yk & "|r"), 20)
            .Value = Y(Yk)
            Intersect([E:T], .Cells).NumberFormatLocal = _
            "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
         End With
         .[C3] = Y(Yk & "/c")
         .[C3] = .[C3] & "¡m" & Y(Yk & "/b") & "¡n"
         N = .Cells(Rows.Count, "F").End(3).Row
         With .Cells(N + 1, "F").Resize(1, 15)
            .Value = "=SUM(F5:F" & N & ")"
         End With
      End With
   End If
Next
Set Y = Nothing: Erase Brr, Crr, Z, A, B
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¥¬¬I¦p¼½ºØ¡A¥HÅw³ß¤ß´þ¼íºØ¤l¡A¤~·|µoªÞ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD