?
Solved

Unique Invoice Number

Posted on 1998-04-16
6
Medium Priority
?
386 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
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…

801 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