Solved

Unique Invoice Number

Posted on 1998-04-16
6
375 Views
Last Modified: 2006-11-17
Greetings,
I'm new to VBA with Excel. I was wondering how I can have a unique Invoice Number  printed on an expense report I have created. It is in a protected Excel 97 template. There will multiple users and I need the invoice number counter to increment by one each time the template is opened. I'm sure some one has run into this before. If the code exists please let me know where to find it. I'm very familiar with VB just not the Excel API.

Thanks for your help in advance,
Brad
0
Comment
Question by:bhummel
  • 3
  • 3
6 Comments
 

Accepted Solution

by:
Acmatics earned 100 total points
ID: 1612505
You could create a shared database (.mdb) with an AutoIncrement field in your Invoice record. As you add new Invoice records a new number will be generated.  
0
 

Author Comment

by:bhummel
ID: 1612506
I was trying to avoid that. I wanted to keep it all with in Excel. But, it's looking more and more like that is the only way to go. Question how do you name a cell in Excel? You can Book Mark in Word is there similiar functionality in Excel.

Thanks,
Brad
0
 

Expert Comment

by:Acmatics
ID: 1612507
This is a new question of course, but you should have no problem playing "Name that Range".

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:bhummel
ID: 1612508
Did that. I used MSQuery and and an .mdb as you suggested. For some reason Excel keeps putting a header above the AutoNumber from the .mdb. Can I get rid of that column name? Also, the spreadsheet will be protected, I have unlocked the cell and it gives me an error saying the sheet is locked. How Can I get around that?

Thanks,
Brad
0
 

Expert Comment

by:Acmatics
ID: 1612509
Again another set of questions, but did you set protection off, did you try using overriding your column heading to "", did you consider doling out a few points?;)
0
 

Author Comment

by:bhummel
ID: 1612510
Thanks for your help. Here are your points.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now