Solved

Unique Invoice Number

Posted on 1998-04-16
6
378 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
Industry Leaders: 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!

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

713 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