Solution for archiving invoices

Kokas

New Member
Joined
Nov 13, 2017
Messages
7
Hi guys and girls!

I am a kind of a self taught newbie to excel.

I created an excel worksheet to help me work with my invoices that looks (and works) pretty cool.

However i need help creating an archive sheet that will include all the data from every invoice i issue.

I would need a button to activate the transfer of data to the archive sheet because i use the invoice sheet as a template to issue all of my invoices...

The archive sheet would include the date issued, the number of the invoice, the amounts to be paid, the vat and the company details that i am issuing the invoice to...

Please help, i will be more than grateful !!

Thanx!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You could possibly have the archive updated automatically when you issue the invoice. It is difficult to suggest anything without seeing how you data is organized and what your template looks like. Perhaps you could upload a copy of your file to a free site such as www.box.com. or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Include a detailed explanation of what you would like to do referring to specific cells and worksheets. If the workbook contains confidential information, you could replace it with generic data.
 
Upvote 0
You could possibly have the archive updated automatically when you issue the invoice. It is difficult to suggest anything without seeing how you data is organized and what your template looks like. Perhaps you could upload a copy of your file to a free site such as www.box.com. or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Include a detailed explanation of what you would like to do referring to specific cells and worksheets. If the workbook contains confidential information, you could replace it with generic data.

Ok then... :)

The link to the TEST file is here

The invoice is written in Greek so i will try to make it clear :)

What i want to do is already almost done. At the page "Αρχείο" (means archive) i already associated the appropriate cells of the page "Τιμολόγιο Υπηρεσιών" (means services invoice)

What i am missing is a command (with a button maybe)or a formula to record this values from the "Τιμολόγιο Υπηρεσιών" page to the "Αρχείο" only when i want to...Actually i want it updated by the time i issue the invoice as you said above...

What are my options ?

Thank you!
 
Upvote 0
Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your sheet Τιμολόγιο Υπηρεσιών and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. This is a Worksheet_Change macro which is triggered automatically when you make a change in cell E9 in your case. This means that you must make sure that all the other data on your Τιμολόγιο Υπηρεσιών sheet has been entered and the last thing you do is you make your selection in the drop down list in E9. Also, you no longer need the formulae in columns A to D in the archive sheet.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("E9")) Is Nothing Then Exit Sub
    With Sheets("Sheet2")
        .Cells(Rows.Count, "A").End(xlUp).Offset(1, 0) = Range("H5")
        .Cells(Rows.Count, "B").End(xlUp).Offset(1, 0) = Range("H3")
        .Cells(Rows.Count, "C").End(xlUp).Offset(1, 0) = Range("E9")
        .Cells(Rows.Count, "D").End(xlUp).Offset(1, 0) = Range("H18")
    End With
End Sub
 
Upvote 0
Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your sheet Τιμολόγιο Υπηρεσιών and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. This is a Worksheet_Change macro which is triggered automatically when you make a change in cell E9 in your case. This means that you must make sure that all the other data on your Τιμολόγιο Υπηρεσιών sheet has been entered and the last thing you do is you make your selection in the drop down list in E9. Also, you no longer need the formulae in columns A to D in the archive sheet.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("E9")) Is Nothing Then Exit Sub
    With Sheets("Sheet2")
        .Cells(Rows.Count, "A").End(xlUp).Offset(1, 0) = Range("H5")
        .Cells(Rows.Count, "B").End(xlUp).Offset(1, 0) = Range("H3")
        .Cells(Rows.Count, "C").End(xlUp).Offset(1, 0) = Range("E9")
        .Cells(Rows.Count, "D").End(xlUp).Offset(1, 0) = Range("H18")
    End With
End Sub

Ok this sounds cool enough !! However, i did as described but nothing seems to happen...
 
Upvote 0
My apologies. I used "Sheets("Sheet2") in the code when I was testing it. Change
Code:
With Sheets("Sheet2")
to
Code:
With Sheets(2)
and try it again.
 
Last edited:
Upvote 0
My apologies. I used "Sheets("Sheet2") in the code when I was testing it. Change
Code:
With Sheets("Sheet2")
to
Code:
With Sheets(2)
and try it again.

I hope i don't do something wrong but it still doesn't work :(
 
Upvote 0
Click here to download your file and give it a try. Just make a selection in E9.
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top