justanotheruser
Board Regular
- Joined
- Aug 14, 2010
- Messages
- 96
Hi all,
I have searched the forums for an answer to this, but everyone wants to see to copy data from a closed workbook to an open one, not the other way around! I don't know if the last 2 links on http://www.erlandsendata.no/english/index.php?t=envbadac will help with what I need, so I better get straight to the point an explain it.
I have an Invoice Maker on Excel 2010 which I created myself. It works well, however when I save the invoice, the next time I create a new invoice, it overwrites the existing information - which is fine.
The problem that I have is that every quarter, I have to do VAT Tax Returns, which means that I have to enter particular information about each invoice into another Excel worksheet - manually.
I would very much appreciate if I could copy the information from my Invoice Maker to another sheet using a macro with some VBA code. Ideally, it would copy data from lots of particular cells and paste it in this other workbook in a neat table, something like this:
These are the cells which the data should be extracted from:
In the table above, for row E ("Description"), this should always be put as Sales.
Ideally, this should be automatically done with the click of the button, opening the workbook to be copied to, adding the information to a new row, saving the workbook and then closing it. If you can make it so that you never see that happening, that would be awesome, but if not, then I don't mind.
I hope that this is possible with VBA and it isn't too complicated, I'm a bit of a newbie so I'm stuck. I hope that you guys can help, and, as ever, I'll be eternally grateful if you can!
Regards,
Ryan
I have searched the forums for an answer to this, but everyone wants to see to copy data from a closed workbook to an open one, not the other way around! I don't know if the last 2 links on http://www.erlandsendata.no/english/index.php?t=envbadac will help with what I need, so I better get straight to the point an explain it.
I have an Invoice Maker on Excel 2010 which I created myself. It works well, however when I save the invoice, the next time I create a new invoice, it overwrites the existing information - which is fine.
The problem that I have is that every quarter, I have to do VAT Tax Returns, which means that I have to enter particular information about each invoice into another Excel worksheet - manually.
I would very much appreciate if I could copy the information from my Invoice Maker to another sheet using a macro with some VBA code. Ideally, it would copy data from lots of particular cells and paste it in this other workbook in a neat table, something like this:
Excel Workbook | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | |||
4 | Folio | Date | Name | Description | Amount | VAT | Std | Zero | ||
5 | 630 | 16 August 2010 | John Doe | Sales | 100.00 | 15.04 | 85.92 | |||
Table in Closed Workbook where data should be copied to |
These are the cells which the data should be extracted from:
- Original Sheet Cell B7 - contains the value "16082010-8332010". From here, only the 833 is wanted for "Folio" , not the rest of the value - is this possible?
- Original Sheet Cell B6 - the date (a simple one)
- Original Sheet Cell B11 - the name
- Original Sheet Cell E49 - the amount
- Original Sheet Cell E48 - the VAT
- Original Sheet Cell E47 - the STD
In the table above, for row E ("Description"), this should always be put as Sales.
Ideally, this should be automatically done with the click of the button, opening the workbook to be copied to, adding the information to a new row, saving the workbook and then closing it. If you can make it so that you never see that happening, that would be awesome, but if not, then I don't mind.
I hope that this is possible with VBA and it isn't too complicated, I'm a bit of a newbie so I'm stuck. I hope that you guys can help, and, as ever, I'll be eternally grateful if you can!

Regards,
Ryan