| ©«¤l13 ¥DÃD4 ºëµØ0 ¿n¤À24 ÂI¦W0  §@·~¨t²ÎWindows XP ³nÅ骩¥»SP2 ¾\ŪÅv10 ©Ê§O¨k ¨Ó¦ÛHK µù¥U®É¶¡2013-2-21 ³Ì«áµn¿ý2021-9-16 
 | 
                
| Hsieh ¤j¤j, 
 ÁÂÁ§Aªº¦^ÂÐ, ¤£¹L¦ü¥G¥X²{Error.
 
 µM«á¤p§Ì´N¦Û¤v¹Á¸Õ¼g, ¤£¦p¥u¦L¤F4±i, ¤£ª¾¬°Ô£©O:'(
 
 §ä¤F«Ü¤[¤]§ä¤£¥Xì¦]...............
 
 Sub INV()
 
 Dim i As Integer, R As Integer
 Set my_invoice = Worksheets("INVOICE")
 Set my_data = Worksheets("PRINT")
 
 With Worksheets("PRINT")
 .Activate
 R = .Cells(Rows.Count, 1).End(xlUp).Row
 End With
 
 i = 3
 
 Do While i <= R
 my_invoice.Cells(10, 3) = my_data.Cells(i, 11)
 my_invoice.Cells(16, 5) = my_data.Cells(i, 13)
 my_invoice.Cells(18, 2) = my_data.Cells(i, 19)
 my_invoice.Cells(19, 4) = my_data.Cells(i, 2)
 my_invoice.Cells(20, 4) = my_data.Cells(i, 15)
 my_invoice.Cells(21, 4) = my_data.Cells(i, 16)
 my_invoice.Cells(22, 4) = my_data.Cells(i, 17)
 my_invoice.Cells(23, 4) = my_data.Cells(i, 18)
 my_invoice.PrintOut
 
 i = i + 1
 Loop
 
 End Sub
 | 
 |