我希望每次单击时将单元格值更新为另一张表中的下一个单元格值,然后打印该值。
Sub SerPrint()
i = 1
'when button click it change to `c3 c4 c5 and C......
' until the end of table
Sheet1.Range("n7").Value = Sheet2.Range("C"2 + i )
'like Value in cell N7 from sheet1 have value from c2 Sheet2 then
' after i click it change to c3,c4,c5,c....
Sheet1.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
' then print out
End Sub