Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
Hi,
I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
MB,
Where is the invoice number? A cell in the sheet? Sheet name (on the sheet tab)? Conan "MB" wrote in message ... Hi, I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
Hi MB
Are you asking to add to your macro a way to increment a number let say 012345 in cell D1 everytime you execute the macro?? Regards Cimjet "MB" wrote in message ... Hi, I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
Yes, that's what I'm trying to do.
"Cimjet" wrote in message ... Hi MB Are you asking to add to your macro a way to increment a number let say 012345 in cell D1 everytime you execute the macro?? Regards Cimjet "MB" wrote in message ... Hi, I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
Yes, there is only one sheet and the invoice number is in a cell, I am
trying to get it to advance by one every time I create a new invoice and at the same time clear the details from other cells used in the previous invoice. "Conan Kelly" wrote in message ... MB, Where is the invoice number? A cell in the sheet? Sheet name (on the sheet tab)? Conan "MB" wrote in message ... Hi, I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
somewhere on the sheet is where you have your current invoice number, let's
just say K8 is where you have your invoice number. next, somewhere in your macro, you need to add the following mycount = Range("K8") + 1 Range("K8") = mycount hope that helps, jatman. "MB" wrote: Hi, I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro to create new invoice
Works perfectly. Thanks very much :}
"jatman" wrote in message ... somewhere on the sheet is where you have your current invoice number, let's just say K8 is where you have your invoice number. next, somewhere in your macro, you need to add the following mycount = Range("K8") + 1 Range("K8") = mycount hope that helps, jatman. "MB" wrote: Hi, I would like to create a macro which clears the contents of selected cells, creates a new invoice number by adding 1 to the previous number then saves the document. I am OK with the clearing cells and saving worksheet part of the macro but I am not sure how to add the number to the invoice. Any help appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How To Create a Percentage Discount in Invoice | Excel Discussion (Misc queries) | |||
how do I create invoice with fillins using again? | New Users to Excel | |||
how do I create an invoice from a spreadsheet | New Users to Excel | |||
i need to create an invoice that will flag up when not paid | Excel Discussion (Misc queries) | |||
How do I create an invoice so every time I need a new one a new i. | Excel Worksheet Functions |