Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Hiren
 
Posts: n/a
Default How do I auto increment cell value on print in Excel

I am trying to creat an invoice template using Excel 2002. My purpose is to
auto increment the invoice number whenever I make a new invoice.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Take a look he

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html



In article ,
"Hiren" wrote:

I am trying to creat an invoice template using Excel 2002. My purpose is to
auto increment the invoice number whenever I make a new invoice.

  #3   Report Post  
Hiren
 
Posts: n/a
Default

Hello JE McGimpsey,

Thanks for the instant help. However whenever the workbook template is
accessed for a new invoice generation, it give a runtime error which when
debugged points to
With ThisWorkbook.Sheets("Invoice")
line of the code. I m not sure if I m doing it correct as I dont use macros
regularly but this code has been saved in ThisWorkbook window, under open
event. Is this OK?

"JE McGimpsey" wrote:

Take a look he

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html



In article ,
"Hiren" wrote:

I am trying to creat an invoice template using Excel 2002. My purpose is to
auto increment the invoice number whenever I make a new invoice.


  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

The location is OK. Change the sheet name to your worksheet.

In article ,
"Hiren" wrote:

Thanks for the instant help. However whenever the workbook template is
accessed for a new invoice generation, it give a runtime error which when
debugged points to
With ThisWorkbook.Sheets("Invoice")
line of the code. I m not sure if I m doing it correct as I dont use macros
regularly but this code has been saved in ThisWorkbook window, under open
event. Is this OK?

  #5   Report Post  
Hiren
 
Posts: n/a
Default

Thanks. It does work now.

Is there a book I can purchase and test some sample macros which maybe
useful for my other functions in the invoice?

Rgds,


"JE McGimpsey" wrote:

The location is OK. Change the sheet name to your worksheet.

In article ,
"Hiren" wrote:

Thanks for the instant help. However whenever the workbook template is
accessed for a new invoice generation, it give a runtime error which when
debugged points to
With ThisWorkbook.Sheets("Invoice")
line of the code. I m not sure if I m doing it correct as I dont use macros
regularly but this code has been saved in ThisWorkbook window, under open
event. Is this OK?




  #6   Report Post  
Don Guillett
 
Posts: n/a
Default

One way would be to put it in the before print event of the ThisWorkbook
module.

--
Don Guillett
SalesAid Software

"Hiren" wrote in message
...
I am trying to creat an invoice template using Excel 2002. My purpose is

to
auto increment the invoice number whenever I make a new invoice.



  #7   Report Post  
JulieD
 
Posts: n/a
Default

Hi Hiren

if you'ld like to email me direct (julied_ng at hcts dot net dot au) i
have a sample invoicing workbook which you might be able to customise to
your needs or get some ideas from etc.

alternatively (or as well) check out
http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

Cheers
JulieD

"Hiren" wrote in message
...
I am trying to creat an invoice template using Excel 2002. My purpose is to
auto increment the invoice number whenever I make a new invoice.



  #8   Report Post  
Paul B
 
Posts: n/a
Default

Hiren, have a look here for how to do it

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


"Hiren" wrote in message
...
I am trying to creat an invoice template using Excel 2002. My purpose is to
auto increment the invoice number whenever I make a new invoice.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Microsoft Excel could not find anything to print cyndi Excel Discussion (Misc queries) 1 December 22nd 04 01:40 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM
How do I input for an automatic increment in a cell on Excel? Rissy Excel Worksheet Functions 1 November 29th 04 09:01 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"