Here's the code tothe actual problem
The only problem is its VERY slow...THe code is pretty repetitive. Bogs down everything for some reason.
In the Trade Ticket Data file... I have Date in Col C, Commission in Col N
and Account in Col I.
The names of the account are in Row 2 of the Commissions Sheet. SO for every account we have the Commissions.
I need to use it as a macro. So at the end of the the macro seeks information from the Data sheet and puts the SUM on the Commission sheet, by date and decomposed by Account.
The list grows everytime and only anytime the user executes the macro.
Then instead of Commissions there are other 'scores' and we do the same for thme and this is really slow
(If you would want to look at the actual file -- that'd be great, I could upload it on my web-site)
THanks
Here --> the first column will give today's date..
The next 10 columns will have 10 commission score sums, decomposed by accounts for that day.
Code:
Sub Update()
Sheets("Settings").Range("B33").Value = Sheets("Trade Ticket Data").Range("C65536").End(xlUp).Value
--> This stores the date in Settings!B33
'for Commissions
Sheets("Commissions").Range("A65536").End(xlUp).Offset(1, 0).Value = Sheets("Settings").Range("B33").Value
--> THis gives the date in the first non-emty cell of the first column
Sheets("Commissions").Range("A65536").End(xlUp).Offset(0, 1).Formula = "=SUMPRODUCT((('Trade Ticket Data'!C2:C65536)=Settings!B33)*(('Trade Ticket Data'!I2:I65536)=Commissions!B2)*('Trade Ticket Data'!N2:N65536))"
.. gives Commission for Account which is denoted by in Commissions!B2.
and so on.. for 9 other accounts.
End Sub