Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default On Excel Invoices it gives an invoice number-can be seq #'d???

I want to produce invoices(2 copies) that are sequencially numbered so that I
can keep up with them. Any way to do this or am I better off just keeping
excel spreadsheet to refer to.?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 515
Default On Excel Invoices it gives an invoice number-can be seq #'d???

From a previous posting by JE Mc Gimpsey
This will autonumber your invoice on opening. You can print 2 copies, and
save as the invoice number

Private Sub Workbook_Open()
Const sAPPLICATION As String = "Excel"
Const sSECTION As String = "Invoice"
Const sKEY As String = "Inv_key"
Const nDEFAULT As Long = 1&
Dim nNumber As Long

With ThisWorkbook.Sheets("Sheet1")
With .Range("H10")
If IsEmpty(.Value) Then
.Value = Date
.NumberFormat = "dd mmm yyyy"
End If
End With
With .Range("H10")
If IsEmpty(.Value) Then
nNumber = GetSetting(sAPPLICATION, sSECTION, sKEY,
nDEFAULT)
.NumberFormat = "@"
.Value = Format(nNumber, "0000")
SaveSetting sAPPLICATION, sSECTION, sKEY, nNumber + 1&
End If
End With
End With
End Sub

--
Hth

Kassie Kasselman


"Hinglesby" wrote:

I want to produce invoices(2 copies) that are sequencially numbered so that I
can keep up with them. Any way to do this or am I better off just keeping
excel spreadsheet to refer to.?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default On Excel Invoices it gives an invoice number-can be seq #'d???

JE McGimpsey also shows a method that uses a .txt file to remember last used
inventory number and auto-increment (and discusses the method mentioned by
kassie) he
http://www.dailydoseofexcel.com/arch...h-a-text-file/
Note that in his example, sMYPATH is obviously a path that has been declared
somewhere else (in global declarations as a Const most likely) before this
routine is called.

"kassie" wrote:

From a previous posting by JE Mc Gimpsey
This will autonumber your invoice on opening. You can print 2 copies, and
save as the invoice number

Private Sub Workbook_Open()
Const sAPPLICATION As String = "Excel"
Const sSECTION As String = "Invoice"
Const sKEY As String = "Inv_key"
Const nDEFAULT As Long = 1&
Dim nNumber As Long

With ThisWorkbook.Sheets("Sheet1")
With .Range("H10")
If IsEmpty(.Value) Then
.Value = Date
.NumberFormat = "dd mmm yyyy"
End If
End With
With .Range("H10")
If IsEmpty(.Value) Then
nNumber = GetSetting(sAPPLICATION, sSECTION, sKEY,
nDEFAULT)
.NumberFormat = "@"
.Value = Format(nNumber, "0000")
SaveSetting sAPPLICATION, sSECTION, sKEY, nNumber + 1&
End If
End With
End With
End Sub

--
Hth

Kassie Kasselman


"Hinglesby" wrote:

I want to produce invoices(2 copies) that are sequencially numbered so that I
can keep up with them. Any way to do this or am I better off just keeping
excel spreadsheet to refer to.?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default On Excel Invoices it gives an invoice number-can be seq #'d???

Oops, my bad - it appears that .txt method was posted by Dick Kusleika rather
than by JE M. although I know that similar method has been attributed to JE
M. in the past. In either case, the method is the same, just wanted to give
credit where credit is properly due.
JLatham

"Hinglesby" wrote:

I want to produce invoices(2 copies) that are sequencially numbered so that I
can keep up with them. Any way to do this or am I better off just keeping
excel spreadsheet to refer to.?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separating invoices by invoice date then summing by quarter neroamdrid Excel Worksheet Functions 2 October 19th 06 07:57 AM
How do I set up invoices to automatically change invoice numbers? Scotiagolf Excel Discussion (Misc queries) 1 December 15th 05 02:27 AM
Auto number invoices in Excel Fay Excel Worksheet Functions 1 September 12th 05 04:43 PM
How to auto-number (increment) invoices in Excel? Pheasant Plucker® Excel Discussion (Misc queries) 1 September 8th 05 01:58 PM
How do I change the invoice number assigned in Invoice template... akress Excel Discussion (Misc queries) 1 February 28th 05 06:36 PM


All times are GMT +1. The time now is 10:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"