Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I need to generate a running/consecutive number that will change everytime I
print of the worksheet in cell A1. I cant remember how to do it!!! Thanks |
#2
![]() |
|||
|
|||
![]()
One simple way
Private Sub Workbook_BeforePrint(Cancel As Boolean) Range("A1").Value = Range("A1").Value + 1 End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- HTH RP (remove nothere from the email address if mailing direct) "susan" wrote in message ... I need to generate a running/consecutive number that will change everytime I print of the worksheet in cell A1. I cant remember how to do it!!! Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Master invoice number | Excel Worksheet Functions | |||
Random Number Questions | Excel Worksheet Functions | |||
How do I sum 4 number discarding the largest number. | Excel Worksheet Functions | |||
How to make Cells automatically become 'highlighted' when number . | Excel Worksheet Functions | |||
How to make Cells automatically become 'highlighted' when number . | Excel Worksheet Functions |