Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Auto numbering

Christiana
You said you wanted this number to increment when you open the file.
What Chong gave you will do that. However, if you do not want to have
skipped numbers in your invoice system, you might want to consider having
the number increment at the print command. I have found that I sometimes
cancel or otherwise stop a task for one reason or another. If this happens
to you in the middle of preparing an invoice, then you will lose that number
if you don't manually change it back.
If you want to use the print command as the trigger, put this macro into
your workbook module. To access the workbook module, look at the menu
across the top of the screen. It has File - Edit - View - Insert - etc.
Look to the left of the word File and find the Excel icon there. Right
click on that icon. Select View Code. The module that pops up is the
workbook module. HTH Otto
Private Sub Workbook_BeforePrint(Cancel As Boolean)
[A1] = [A1] + 1
End Sub

"Christiana" wrote in message
...
I would like to create a field that with contain a number
which will be increased next time you will open the
particular file. Basically what I have is an Invoice
speadsheet and I want the Invoice number to be entered
automatically each time someone opens the file. How I will
do that? should I need VBA for this?



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
Auto numbering Manos Excel Worksheet Functions 4 October 31st 08 08:01 AM
Auto Numbering Richard Excel Discussion (Misc queries) 3 January 21st 08 06:56 PM
Auto Numbering Nigel 2000 Excel Discussion (Misc queries) 2 September 19th 06 09:34 AM
help with auto numbering aecon Excel Discussion (Misc queries) 1 October 28th 05 05:52 PM
auto numbering Tricky Nicky Excel Discussion (Misc queries) 2 December 29th 04 05:44 PM


All times are GMT +1. The time now is 01:20 AM.

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

About Us

"It's about Microsoft Excel"