Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default increasing invoice number automatically

I am trying to make an invoice that will automatically increase the Invoice
number automatically everytime I open the file and is there a way to have the
currant date update everytime the invoice file is opened to make a new
invoice. Is this possible? and if so How?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default increasing invoice number automatically

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


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Froggy68" wrote in message ...
| I am trying to make an invoice that will automatically increase the Invoice
| number automatically everytime I open the file and is there a way to have the
| currant date update everytime the invoice file is opened to make a new
| invoice. Is this possible? and if so How?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default increasing invoice number automatically

Thank you Niek, i did find that link while reading thru other messages to
find an answer. I tried inserting the code but will not work for me. I'll try
to figure it out and let you know what i did wrong, maybe it will help
someone else too.

"Niek Otten" wrote:

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


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Froggy68" wrote in message ...
| I am trying to make an invoice that will automatically increase the Invoice
| number automatically everytime I open the file and is there a way to have the
| currant date update everytime the invoice file is opened to make a new
| invoice. Is this possible? and if so How?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 709
Default increasing invoice number automatically

Froggy68, 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

"Froggy68" wrote in message
...
I am trying to make an invoice that will automatically increase the

Invoice
number automatically everytime I open the file and is there a way to have

the
currant date update everytime the invoice file is opened to make a new
invoice. Is this possible? and if so How?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default increasing invoice number automatically

Thank you Paul, i did find that link while reading thru other messages to
find an answer. I tried inserting the code but will not work for me. I'll try
to figure it out and let you know what i did wrong, maybe it will help
someone else too.

"Paul B" wrote:

Froggy68, 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

"Froggy68" wrote in message
...
I am trying to make an invoice that will automatically increase the

Invoice
number automatically everytime I open the file and is there a way to have

the
currant date update everytime the invoice file is opened to make a new
invoice. Is this possible? and if so How?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 141
Default increasing invoice number automatically



On Dec 19, 9:24 am, Froggy68
wrote:
I am trying to make an invoice that will automatically increase the Invoice
number automatically everytime I open the file and is there a way to have the
currant date update everytime the invoice file is opened to make a new
invoice. Is this possible? and if so How?


Hi Froggy68,

I would suggest using a custom document property rather than an
external file or the registry... this way the property stays with the
file regardless.

For example:

Private Sub Workbook_Open()
Dim InvoiceNum As Integer
On Error Resume Next
Err.Clear
InvoiceNum = CustomDocumentProperties("Invoice").Value
If Err.Number < 0 Then ThisWorkbook.CustomDocumentProperties.Add
Name:="Invoice", LinkToContent:=False, Type:=msoPropertyTypeNumber,
Value:=1
ThisWorkbook.CustomDocumentProperties("Invoice").V alue = (InvoiceNum +
1)
Application.Calculate
End Sub

Placed in the workbook, then:

Private Function GetProperty(Info_needed As String) As Variant
Application.Volatile
GetProperty =
ThisWorkbook.CustomDocumentProperties(Info_needed) .Value
End Function

Placed in a module. After this is in place, the invoice number can be
called anywhere in the sheet by entering '=GetProperty("Invoice")' in
any cell.

Another variation of this would be to store the value in a cell instead
of a property value, but then it could be deleted more easily.

Cheers,
Ivan.

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
How do I add a serial number to an invoice Jude Excel Worksheet Functions 1 June 27th 06 09:28 AM
auto insert invoice number that increases by one each time opened Michael HPSC Excel Worksheet Functions 3 November 29th 05 08:10 AM
Can I make the number in one cell automatically appear elsewhere? holmeshouse Excel Worksheet Functions 2 August 17th 05 01:12 PM
how does an invoice number change automatically ? JudyRuiz New Users to Excel 2 April 8th 05 02:31 PM
How do I automatically pull a new invoice number into an excel te. Hube Excel Discussion (Misc queries) 3 December 28th 04 11:27 PM


All times are GMT +1. The time now is 03:07 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"