Macro for adding a new line of refeneced data from new worksheets

twday

New Member
Joined
Sep 16, 2014
Messages
3
I've been searching for ways to do this for a while now but haven't been able to find anything that works yet.

The Workbook in question is a Sales Ledger with a Current Sales worksheet and a separate worksheet for each sale.
The Currents Sales worksheet references data on each sale worksheet so that it will update whenever the individual sales worksheets are changed.
What I would like to be able to do is to create a macro that will automatically put all the needed data from a new sale worksheet in the first blank row if the Current Sales worksheet.
Any help is greatly appreciated! If you need more information let me know.
Thanks in advance.


Current Sales Worksheet:
Excel 2012
ABCDEFGHIJK
1Contract #ForestBuyerAcresTimber TypeStatusPayment DueExpiration DateInspection Date% Harvested NOS Link
2X009516Cortland 6Not Bid Yet23SWDNBY10/2/201410/2/2017#NUM!0%y
3

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Current Sales

Worksheet Formulas
CellFormula
B2='X009516'!$B$1
C2='X009516'!$C$9
D2='X009516'!$B$3
E2='X009516'!$G$3
F2='X009516'!$D$53
G2=IF('X009516'!H$18="N",'X009516'!C$18,IF('X009516'!H$20="N",'X009516'!C$20,IF('X009516'!H$22="N",'X009516'!C$22,IF('X009516'!H$24="N",'X009516'!C$24,IF('X009516'!H$26="N",'X009516'!C$26,"PIF")))))
H2='X009516'!$C$12
I2=LARGE('X009516'!A$55:A425,1)
J2=LARGE('X009516'!E$55:E$169,1)
K2='X009516'!$K$1

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Sale worksheet:
Excel 2012
ABCDEFGHJKLMNOP
1State ForestCortland 6Contract #X009516Linkedy
2Stand #'sI-29
3Acreage23Sale TypeSWD
4
5Bid Date10/2/2014
6Minimum Bid$6,085.00Bid Amount
7Bond AmountAmount Returned
8
9Buyers NameNot Bid Yet
10Sub-Contractor??
11
12Expiration Date10/2/2017
13
14Payment Schedule
15
16Item%Date DueAdj. DateAmountPayment Made (y/n)
17
18Bid Deposit5%10/2/2014$0.00 n
19
201st Payment20%$0.00 n
21
22Lot A40%7/1/2015$0.00 n
23
24Lot B35%1/1/2016$0.00 n
25
260%$0.00
27
280%$0.00
29
30
31Insurance Certificates
32TypeExpiration DateExemption #
33Liability
34WC Insurance
35
36Logger Cerification #'s
37
38NameCert. #Expiration
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53Sale DiaryStatusNBY
54
55DateInspector% HarvestedComments
560%

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
X009516

 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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