Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-06-2010, 07:45 AM
mrphilk mrphilk is offline Invoice Number Generation Windows XP Invoice Number Generation Office 2003
Novice
Invoice Number Generation
 
Join Date: Jul 2009
Posts: 8
mrphilk is on a distinguished road
Default Invoice Number Generation

Im working on a new `Time Sheet` for work and need a way of generating an order number.

At the moment I have used the format PK00001, PK00002 etc in a cell and have created a list (using data - validation - list) with a pull down menu to select the number used/required.

I have then obtained a macro (through google :-) ) to save the file as follows;

PK0001, Staff Member, Customer, Date

Macro Script;

Sub savesheets()

Dim newfile As String, ssno As String, eng As String, cust As String, loc As String

ssno = Range("J2").Value
eng = Range("E6").Value
cust = Range("e4").Value
loc = Range("j4").Value

newfile = ssno & " " & eng & ", " & cust & " " & loc & " Service Report.xls"
ChDir _


"C:\Documents and Settings\KHS\Desktop\Drafts"
ActiveWorkbook.SaveAs Filename:=newfile

End Sub

While this method is ok it would be better if there was a way excel could generate the number automatically as this does eventually need to be idiot proof.

Or is there a way of having a master file, which will save the edited file as a copy (see above macro) but will not let you use the same number twice?

If anyone has any suggestions of their experience or ideas, even if its not a sollution I would be greatful.

Thanks.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reduce top margin in even and odd pages in pdf generation using msword Nandu4u Word 0 11-20-2009 07:16 AM
MSOA Express 2009: Export or Print custom modified Invoice Template derelyth Misc 0 10-19-2009 03:33 PM
Invoice Number Generation Last Number in a Column paulrm906 Excel 1 12-05-2008 07:51 PM
Templates: automatic text generation from Rich Text content control Chickenmunga Word 0 10-01-2008 11:16 AM
Invoice Number Generation change currency $ to £ on excel invoice help deanorx7 Excel 3 07-08-2008 04:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft