再請教一下~
BeforePrint,這個Event是在預覽時就已將Worksheets("序號").Cells(fi.Row, "B") = "V"的值寫入
是否有方法可讓user是真正送出列印指令,該段程式碼才生效呢?
且同時自動"重新取號"
For Each 序號 In Worksheets("序號").Range("A2:A" & Worksheets("序號").Range("A65535").End(xlUp).Row)
ro = 序號.Row
If Sheets("序號").Cells(ro, "B") = "" Then
'[B2] = Worksheets("序號").Cells(ro, "A")
Worksheets("統計").Range("B2").Value = Worksheets("序號").Cells(ro, "A")
End
End If
Next作者: lpk187 時間: 2015-3-16 15:59