![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: John G
Posts: 62
|
I have an invoice program that I want to keep track of the current invoice number and update that sequentially. Can I write the current invoice number to the registry and if so, how do I do that?
John |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
You can use "SaveSetting" and "GetSetting" just so long as you don'y really care what part of the registry you're writing to. I believe that this writes to a VBA directory of the registry.
Anyway, the help file's got a good example there and it should help you. |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
You could also create your own
Text file or ini file and just refernce this via sequential line input Look up Input in the VBE Ivan |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Another option
Use some API calls to access the whole registry. If you need them, repost. |
|
|
|
|
|
#5 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi jgoulart
I have a free downlod here that maybe of interest to you: http://www.ozgrid.com/download/default.htm It's under: InvoiceAutoNumber.zip |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|