Hi everyone ! Been reading this forum for ages and gleaned loads of information but can't find a solution to my problem.
I run a small business and have set up the accounts on a spreadsheet. Managed to work out functions etc to transfer info from one worksheet to another but I need a macro (Ithink) to automatically 'log' info from an invoice. I would like ideally to auto list date, inv no, net, tax, total from the invoice onto another worksheet row by row when the Invoice is saved.
I have managed with great difficulty to write a macro to 'Save' from a button. I have shown this below.
[VBA]Sub Rectangle17_Click()
'
' Rectangle17_Click Macro
' Macro recorded 21/09/2008 by Eileen
'Dim Lst As String
Lst = Range("E6").Value & "_SalesInvoice.xls"
ActiveWorkbook.SaveAs Filename:= _
Lst _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub[/VBA]
Is it possible to add to this and log the invoice also?
Have tried SUMIF "E6" = a certain inv no but the function isn't recognised until the inv is created so can't copy function down the rows !
Sorry if this is a long drawn out post.
Thanks for reading this.