Re: Incrementing a cell after printing
- From: "Paul B" <to_much_spam_to_list@xxxxxxxxxx>
- Date: Wed, 24 Aug 2005 19:58:08 -0400
Coffeezone,
A simple way would be to use something like this in a before print event,
put in thisworkbook module
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Sheets("Sheet1").Range("A1").Value = _
Sheets("Sheet1").Range("A1").Value + 1
End Sub
For other ways to do this or if this is going to be used in a temple have a
look here
http://www.mcgimpsey.com/excel/udfs/sequentialnums.html
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
"Coffeezone" <Coffeezone@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:394E077F-A1A0-4402-86B9-DA9D049DD74B@xxxxxxxxxxxxxxxx
> Example, printing an invoice with a number, then incrementing that number
by
> 1 and printing the next one. Any way to do that?
.
- Follow-Ups:
- Re: Incrementing a cell after printing
- From: Coffeezone
- Re: Incrementing a cell after printing
- References:
- Incrementing a cell after printing
- From: Coffeezone
- Incrementing a cell after printing
- Prev by Date: Incrementing a cell after printing
- Next by Date: Re: Incrementing a cell after printing
- Previous by thread: Incrementing a cell after printing
- Next by thread: Re: Incrementing a cell after printing
- Index(es):