Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do i set up auto number in excel?

I want my invoices to automatically go up in number. EX. Invoice 1, Invoice
2...
I want this to happen every time I open my template to create a new invoice.
I can't remember how to do this. Can anyone provide me with an answer?
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default how do i set up auto number in excel?

Place this macro in the workbook module. This macro will increment the
number in F5 in the sheet named "SheetName" by 1 every time the file is
opened. HTH Otto
Private Sub Workbook_Open()
With Sheets("SheetName")
[F5].Value = [F5].Value + 1
End With
End Sub
"bpbumbin" wrote in message
...
I want my invoices to automatically go up in number. EX. Invoice 1, Invoice
2...
I want this to happen every time I open my template to create a new
invoice.
I can't remember how to do this. Can anyone provide me with an answer?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default how do i set up auto number in excel?

Oops. I forgot a couple of periods. Use this instead. Otto
Private Sub Workbook_Open()
With Sheets("SheetName")
.[F5].Value = .[F5].Value + 1
End With
End Sub

"Otto Moehrbach" wrote in message
...
Place this macro in the workbook module. This macro will increment the
number in F5 in the sheet named "SheetName" by 1 every time the file is
opened. HTH Otto
Private Sub Workbook_Open()
With Sheets("SheetName")
[F5].Value = [F5].Value + 1
End With
End Sub
"bpbumbin" wrote in message
...
I want my invoices to automatically go up in number. EX. Invoice 1,
Invoice
2...
I want this to happen every time I open my template to create a new
invoice.
I can't remember how to do this. Can anyone provide me with an answer?
Thanks





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
how do i auto number pages in excel p Excel Discussion (Misc queries) 1 February 18th 07 09:41 PM
Auto Number in Excel afmullane Excel Discussion (Misc queries) 1 May 2nd 06 08:14 PM
auto number columns in excel Laura Excel Discussion (Misc queries) 4 March 29th 05 02:39 PM
how to set up a column in excel so it can auto number Excel questions Excel Discussion (Misc queries) 2 March 10th 05 08:35 AM
How do I auto-number rows in excel? Edstar1979 Excel Programming 4 November 13th 04 03:11 PM


All times are GMT +1. The time now is 08:03 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"