Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unique Invoice Number

Posted on 1998-04-16
6
Medium Priority
?
389 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 400 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

772 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