EXCEL打印单据,单号自动递增.用函数或VBA

2024-11-07 13:38:12
推荐回答(2个)
回答1:

必须用VBA

Private Sub Workbook_BeforePrint(Cancel As Boolean)
[a1] = [a1] + 1
End Sub

Private Sub Workbook_Open()
[a1].FormulaR1C1 = "=TEXT(TODAY(),""yyyymmdd"")&TEXT(0,""000"")"
End Sub

回答2:

wo skjgfhu我是打酱油的