Hey guysI have a working code, which I would like to make faster, but I'm struggling a bit.
A few things:
1) It's relatively slow, takes around 10 seconds (for Number = 1... + 2secs for each additional Number), for relatively easy tasks. (Match formula and depending on result -> replace corresponding values in other cells)
Is there any other method to do what i want to do?
2) With my given current code: I don't really know how to make a loop with my code. I know that first thing I can do is: Dim WkRow(1 to 19) as long. Then i know how I would change the WkRow formula... would do like that:
WkRow(i) = Evaluate("MATCH(Calc2!J" & i + 1 & " & Calc2!L" & i + 1 & ",Stock_List!$A:$A&Stock_List!$C:$C,0)")
b.Cells(WkRow(i), "D") = 1
b.Cells(WkRow(i), "F") = 4
... But how would I include the "If Number" statement in a loop?
3) Would a CalculationManual help somewhere to speed everything up? If yes, where?
That's the code:
http://pastebin.com/dATfiGSi
Thanks a lot! I'm glad for any help/suggestion.
Bookmarks