Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Number
Is there a way to increment a number in my spreadsheet each time I print?
Thanks in advance. momo |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Number
From previus post:
ThisWorksheet module Private Sub Workbook_Open() Range("Sheet1!G1") = Range("Sheet1!G1") + 1 End Sub You may want to read J.E. McGimpsey's notes: http://mcgimpsey.com/excel/udfs/sequentialnums.html -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "momotaro" wrote in message ... Is there a way to increment a number in my spreadsheet each time I print? Thanks in advance. momo |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Number
Thanks for the info. Can the number be changed after I printed? For
example, I input info on the sheet and click print. After I click print, I want the number increase to the next number. Can it be done? Thanks again. "Bernard Liengme" wrote: From previus post: ThisWorksheet module Private Sub Workbook_Open() Range("Sheet1!G1") = Range("Sheet1!G1") + 1 End Sub You may want to read J.E. McGimpsey's notes: http://mcgimpsey.com/excel/udfs/sequentialnums.html -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "momotaro" wrote in message ... Is there a way to increment a number in my spreadsheet each time I print? Thanks in advance. momo |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Number
Use this workbook sub
Private Sub Workbook_BeforePrint(Cancel As Boolean) Range("Sheet2!A29") = Range("Sheet2!A29") + 1 End Sub Note it updates BEFORE printing -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "momotaro" wrote in message ... Thanks for the info. Can the number be changed after I printed? For example, I input info on the sheet and click print. After I click print, I want the number increase to the next number. Can it be done? Thanks again. "Bernard Liengme" wrote: From previus post: ThisWorksheet module Private Sub Workbook_Open() Range("Sheet1!G1") = Range("Sheet1!G1") + 1 End Sub You may want to read J.E. McGimpsey's notes: http://mcgimpsey.com/excel/udfs/sequentialnums.html -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "momotaro" wrote in message ... Is there a way to increment a number in my spreadsheet each time I print? Thanks in advance. momo |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excell-How to add the number of cells containing text? = a sum | Excel Worksheet Functions | |||
Generating (in a random order)each number once from a given number | Excel Worksheet Functions | |||
Change number format from text to number? | New Users to Excel | |||
vlookup with more than number to be retrieved | Excel Worksheet Functions | |||
Count Number of Characters in a cell? | Excel Discussion (Misc queries) |