Transfer data into Invoice
Solved/Closed
semperfi90
Posts
1
Registration date
Friday April 11, 2014
Status
Member
Last seen
May 18, 2014
-
Apr 11, 2014 at 11:18 AM
semperfi90 - Apr 28, 2014 at 10:55 AM
semperfi90 - Apr 28, 2014 at 10:55 AM
Related:
- Transfer data from invoice to worksheet automatically with vba
- Transfer data from one excel worksheet to another automatically - Guide
- Free fire transfer - Guide
- How to automatically transfer data between sheets in Excel - Guide
- Vba case like - Guide
- Download automatically while roaming - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Apr 14, 2014 at 10:59 AM
Apr 14, 2014 at 10:59 AM
Hi Semperfi,
It is possible to copy you data to another sheet automatically whenever the quantity is entered.
But what will its locations be?
Or you do want to enter all the quantities first and then run the code manually to create the invoice?
Do you want to remove the quantities after running the code?
Let me know.
Best regards,
Trowa
It is possible to copy you data to another sheet automatically whenever the quantity is entered.
But what will its locations be?
Or you do want to enter all the quantities first and then run the code manually to create the invoice?
Do you want to remove the quantities after running the code?
Let me know.
Best regards,
Trowa
Apr 14, 2014 at 04:35 PM
I want it to be like this...I enter 1 in the quantity column on sheet 1. The software copies the quantity, description and price and puts it on my invoice. So when I'm done if I used 5 different items from sheet 1 (out of probably 100), the 5 items I entered a quantity for will be populated (accordingly) on my invoice.
Apr 15, 2014 at 10:38 AM
To make this work I assumed that column A on the invoice sheet (Sheet2) is empty, except for any headers you might have.
You didn't specify if you wanted the quantities to reset, so check the green text in the code.
Implement the following code by right-clicking sheet1's tab, selecting View code and pasting the code in the big white field of the newly opened window:
Best regards,
Trowa
Apr 16, 2014 at 10:22 AM
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("A:A")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
If Target = vbNullString Then Exit Sub
If IsNumeric(Target) = False Then Exit Sub
Range(Cells(Target.Row, "A"), Cells(Target.Row, "C")).Copy
Sheets("Sheet2").Range("A18").PasteSpecial
Application.CutCopyMode = False
End Sub
When I do that I get my data starting in A18 like I want, but when I use another "piece of equipment" from Sheet 1, it pastes over top of A18. Can I alter this just a tad to have them go down the column?
Apr 22, 2014 at 10:19 AM
That depends on where your other data is located.
If A1:A17 is filled with data you can use:
If A17 is filled with data then you can use:
Also note that you can use End multiple times.
So if you have data in A17 and A35 then the following will also work:
If none of these work then let me now which cells in column A contains data.
Best regards,
Trowa
Apr 22, 2014 at 08:03 PM