how use automatic number

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » How to use automatic number for invoicing | Excel forum

How to use automatic number for invoicing | Excel forum

resolvedResolved · High Priority · Version 2007

Valerie has attended:
Word Advanced course
Excel Advanced course

How to use automatic number for invoicing

how to do automatic number for invoicing

RE: how to use automatic number for invoicing

Hi Valerie

For your invoice number to update automatically you will probably need a macro which runs whenever the file is opened.

Here's the macro for an example where the invoice number is in E3.


I've atached the file so you can test it out and find the macro.
Prees Alt+F11 then double click on ThisWorbook to se the macro code:
Private Sub Workbook_Open()
Range("E3").Value = Range("E3").Value + 1
Range("B14:E29").Clearcontents
Range("E2").value = date
End Sub

The macro increases the invoice number in cell E3 by 1 and clears the range B14:E29 then adds today's date into cell E2.
You can have other cells cleared like the address as well.

Finally the invoice file has to be saved as a macro enabled workbook with a .xlsm extension.

Hope that helps and gives you some ideas for now.

Regards
Doug Dunn
Best STL

Attached files...

Invoice.xlsm

Thu 2 Aug 2012: Automatically marked as resolved.


 

Excel tip:

Concatenating Results of Formulas

To concatenate the results of formulas simply add the "&" after the formula or function closing bracket.

function1(....)&function2(.....)

see example Creating a range of monthly payments as text.

View all Excel hints and tips


Server loaded in 0.08 secs.