¿ï¨úÀx¦s®æ¡AInsert Shift:=xlDown (¿ù»~)
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¿ï¨úÀx¦s®æ¡AInsert Shift:=xlDown (¿ù»~)
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2019-6-15 14:06 ½s¿è
Dear ¤j¤j
¤S¬O¹J¨ì¤@Ó¼¶¼g¹Lµ{¤¤¡AOK!!
¦ý¦b¦¬§À´ú¸Õ®É¡A¤S¹J¨ì¤@Ó¿ù»~¡C «½ÆÀˬd¤F´X¦¸¡AÁÙ¬O§ì¤£¥XBug!!
¤W¨Ó¨D§U!!
To Hugh view_shipping_orders (3)0615_¤u¨ã_½d¨Ò.rar (412.27 KB)
¥Î³oºØ¤è¦¡¼g¡A¬O¥i¥H¹F¨ìµ²ªG¡A¦ýÀ³¸Ó¥Îarray(°}¦C)ªº¤è¦¡¼g¡AÀ³¸Ó¤ñ¸û¤è«K¡C
Ó¤HVBA¼gªk¡G
1¡B±NPO½Æ»s¨ì¥t¤@Äæ¦ì¤W¡C
2¡B¥Î¸ê®ÆåªR¡A±NÀx¦s®æ¤¤¦hPO©î¥X¨Ó¡C
3¡B¥ÎÂù°j°é¤è¦¡+Àx¦s®æ½Æ»s´¡¤J¶K¤Wªº¤è¦¡¡A§¹¦¨¸ê®Æ³B²z¡C- Private Sub CommandButton1_Click()
- Application.ScreenUpdating = True '°õ¦æ¥¨¶°®É¡A¿Ã¹õ¤£§ó·s
- Dim AA1 As Integer
- Dim AA2 As Integer
- Dim AA3 As Integer
- Dim I As Integer
- Dim J As Integer
- ¤u§@ªí1.Range("T1:DZ65536").ClearContents '²M°£¸ê®Æ
- ''½Æ»s
- ¤u§@ªí1.Range("C10").Select
- ¤u§@ªí1.Range(Selection, Selection.End(xlDown)).Select
- Selection.Copy
- ¤u§@ªí1.Range("T10").Select
- ActiveSheet.Paste
- ¤u§@ªí1.Range("V10").Select
- ActiveSheet.Paste
- ' '¸ê®ÆåªR
- '¤u§@ªí1.Range(Selection, Selection.End(xlDown)).Select
- Application.CutCopyMode = False
- Selection.TextToColumns Destination:=Range("V10"), DataType:=xlDelimited, _
- TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
- Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
- :=Array(1, 1), TrailingMinusNumbers:=True
- AA1 = ¤u§@ªí1.Range("V65536").End(xlUp).Row '¶]µ§¼Æ°j°é
- '=======½T»{¸ê®ÆåªR«á¡Aµ§¼Æ=========
- For I = 11 To AA1
- ¤u§@ªí1.Range("U" & I) = Application.CountA(¤u§@ªí1.Range("U" & I & ":DZ" & I))
-
- Next
- '=======================================
- For I = AA1 To 11 Step -1 '¥Ñ³Ì«á¤@µ§¡A©¹¤W³v¨B©îPO
- AA2 = ¤u§@ªí1.Range("U" & I)
- If AA2 <> 1 Then
-
- '====´¡¤J¤Á³Î«áªºPO¸ê®Æ=====
-
- ¤u§@ªí1.Range("B" & I & ":DZ" & I).Select
- Selection.Copy
- ¤u§@ªí1.Range("B" & I & ":DZ" & I + AA2 - 2).Select
-
- Selection.Insert Shift:=xlDown '¿ù»~ÂI!!
-
- '==========================
-
- '===Purchase Order Äæ¦ì¸ê®Æ¡A³vµ§¶ñ¦^======
- AA3 = 0
- For J = I To I + AA2 - 1
- ¤u§@ªí1.Range("C" & J) = ¤u§@ªí1.Cells(I, 22 + AA3)
- AA3 = AA3 + 1
- Next J
-
- End If
-
- Next I
- ¤u§@ªí1.Range("V1:DZ65536").ClearContents
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
|
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2019-6-17 09:18 ½s¿è
¦^´_ 2# ã´£³¡ªL
Dear ¤j¤j
·PÁ§Aªº¦^ÂСA¸Ñ¨M¤F¸ê®ÆåªR«á¡A¤å¦rÂà¼Æ¦r«á¡A²Ä1Ó¦r½X¬°0®É·|¤£¨£±o°ÝÃD¡C
¥u¬O¡A§Úªº§xÂZ¤£¬O¦b¸ê®ÆåªR¤W¡C
¦Ó¬O¦b±N¸ê®Æ«¾ã¡A½Ð¬Ý¤@¤Uì¤åµ{¦¡½X ²Ä52¦C"Selection.Insert Shift:=xlDown '¿ù»~ÂI!!"
¦bÀɮפ¤¦³3ÓSheet¡B¤u¨ã¡Bµ²ªG¡B½d¨Ò
½d¨Ò¡G¦P¨Æªº»Ý¨D¡C
µ²ªG¡G¶È¬O¤ÀªR¸ê®Æ¡Cì©l¸ê®Æ¬°514µ§¡A©îPO«á·|¦³848µ§¡C(¶È¬O¥Î¨Ó¤ñ¹ï¶]§¹«áªº¤ñ¼Æ¬O§_¬°848µ§)
¤u¨ã¡G¥Îµ{¦¡½X¶]§¹«áªºµ²ªG¡C
¥H¤W¸É¥R»¡©ú¡C |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¥»©«³Ì«á¥Ñ hugh0620 ©ó 2019-6-17 10:28 ½s¿è
¦^´_ 2# ã´£³¡ªL
Xl0000359_µ²ªG´ú¸Õ_OK.rar (64.47 KB)
¤W¤åµ§»~¡Gì©l¸ê®Æ¬°514µ§¡A©îPO«á·|¦³848µ§¡C ¥¿½T¬Oì©l¸ê®Æ¬°513µ§¡C
§Q¥Î¤j¤jªºª©¥»¡A¥[¤W§Ú쥻ªºµ{¦¡½X¡A¤w¸g¥i¥H¨Ï¥Î¡C
¥Øªº¡G¦pªG·í¦CªºPO>1®É¡An±NPO©î¦¨¦h¦C¡C(¦pPO=4¡An©î¦¨4¦C¸ê®Æ¡C)
EX¡B PO=1,2,3,4 ¬O¦b¤@ÓÀx¦s®æ
Åܦ¨ 1
2
3
4
§Úªºµ{¦¡½XÀ³¸ÓÁÙ¬O¦³«ü©wÅܼƪº°ÝÃD¡A¬O§_¥i¥HÀ°¦£½T»{¡A»Ýn¦p¦ó½Õ¾ã¤~¯àÁקKBUG!! |
|
¾Ç²ß¤~¯à´£¤É¦Û¤v
|
|
|
|
|
- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
|
|
|
|
|
|