Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default Can I create a sequential numbering system on an Excel document?

I have been asked to find a way that our expense sheet (in Excel) can create
a numbering system where a new number can be created everytime it is opened
so that accounting can log the number and know that it is a new or previously
submitted expense report by the number at the top of the document.

Is this possible?
--
Jamiej
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Can I create a sequential numbering system on an Excel document?

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

--


Regards,


Peo Sjoblom

"Jamie" wrote in message
...
I have been asked to find a way that our expense sheet (in Excel) can
create
a numbering system where a new number can be created everytime it is
opened
so that accounting can log the number and know that it is a new or
previously
submitted expense report by the number at the top of the document.

Is this possible?
--
Jamiej



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Can I create a sequential numbering system on an Excel document?

hi
see this site for ideas
http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

regards
FSt1

"Jamie" wrote:

I have been asked to find a way that our expense sheet (in Excel) can create
a numbering system where a new number can be created everytime it is opened
so that accounting can log the number and know that it is a new or previously
submitted expense report by the number at the top of the document.

Is this possible?
--
Jamiej

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Can I create a sequential numbering system on an Excel document?

Have a look he

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

Hope this helps.

Pete

On Nov 10, 5:01*pm, Jamie wrote:
I have been asked to find a way that our expense sheet (in Excel) can create
a numbering system where a new number can be created everytime it is opened
so that accounting can log the number and know that it is a new or previously
submitted expense report by the number at the top of the document.

Is this possible?
--
Jamiej


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default Can I create a sequential numbering system on an Excel documen

Thanks! I don't know anything about VB, but I did follow the directions, can
you help me debug it? This is what I have put in ThisWorkbook; it keeps
pointing to "With ThisWorkbook.Sheets(OverheadExp)" and giving me a runtime
error 9. Subscript out of range. I am not sure what I am doing wrong. Thanks
for any help!

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

With ThisWorkbook.Sheets(OverheadExp)
With .Range("B1")
If IsEmpty(.Value) Then
.Value = Date
.NumberFormat = "dd mmm yyyy"
End If
End With
With .Range("B2")
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

--
Jamiej


"FSt1" wrote:

hi
see this site for ideas
http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

regards
FSt1

"Jamie" wrote:

I have been asked to find a way that our expense sheet (in Excel) can create
a numbering system where a new number can be created everytime it is opened
so that accounting can log the number and know that it is a new or previously
submitted expense report by the number at the top of the document.

Is this possible?
--
Jamiej



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Can I create a sequential numbering system on an Excel documen

Jamie

This line assigns sSECTION as the string "OverheadExp"
Const sSECTION As String = "OverheadExp"

So you must use that further down
With ThisWorkbook.Sheets(sSECTION)


Gord Dibben MS Excel MVP


On Mon, 10 Nov 2008 14:44:06 -0800, Jamie
wrote:

Thanks! I don't know anything about VB, but I did follow the directions, can
you help me debug it? This is what I have put in ThisWorkbook; it keeps
pointing to "With ThisWorkbook.Sheets(OverheadExp)" and giving me a runtime
error 9. Subscript out of range. I am not sure what I am doing wrong. Thanks
for any help!

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

With ThisWorkbook.Sheets(OverheadExp)
With .Range("B1")
If IsEmpty(.Value) Then
.Value = Date
.NumberFormat = "dd mmm yyyy"
End If
End With
With .Range("B2")
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


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default Can I create a sequential numbering system on an Excel documen

Thanks for the information. I still can't get it to work though.

I have saved - With ThisWorkbook.Sheets(OverheadExp) should it be somewhere
else also?
--
Jamiej


"Gord Dibben" wrote:

Jamie

This line assigns sSECTION as the string "OverheadExp"
Const sSECTION As String = "OverheadExp"

So you must use that further down
With ThisWorkbook.Sheets(sSECTION)


Gord Dibben MS Excel MVP


On Mon, 10 Nov 2008 14:44:06 -0800, Jamie
wrote:

Thanks! I don't know anything about VB, but I did follow the directions, can
you help me debug it? This is what I have put in ThisWorkbook; it keeps
pointing to "With ThisWorkbook.Sheets(OverheadExp)" and giving me a runtime
error 9. Subscript out of range. I am not sure what I am doing wrong. Thanks
for any help!

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

With ThisWorkbook.Sheets(OverheadExp)
With .Range("B1")
If IsEmpty(.Value) Then
.Value = Date
.NumberFormat = "dd mmm yyyy"
End If
End With
With .Range("B2")
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



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
Excel Sequential Numbering of cell within worksheet Motorcar Mama Excel Worksheet Functions 2 January 20th 08 10:57 AM
Can I set up sequential numbering in a colum in excel Quitefriendly1 Excel Discussion (Misc queries) 4 June 22nd 06 01:44 AM
How do I set up excel invoice t/plate with sequential numbering Excel dill Excel Discussion (Misc queries) 1 May 15th 06 08:23 AM
automatic sequential numbering of new excel files pkw59 Setting up and Configuration of Excel 1 October 4th 05 11:53 AM
In Excel, how do I setup sequential numbering on an invoice? Kostumeroom Excel Worksheet Functions 2 August 20th 05 12:51 AM


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

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

About Us

"It's about Microsoft Excel"