- ©«¤l
- 13
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 24
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows XP
- ³nÅ骩¥»
- SP2
- ¾\ŪÅv
- 10
- ©Ê§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 |
|