1.What is You challenge with that? Iam getting an run time error is Run – time error-‘2147417848(80010108)’: Method ‘Cells’ of object’_worksheet’ failed. So I started using the other code for Private Sub Worksheet_Change(ByVal Target As Range) mentioned above. Upon end the code I receive Not enough system recourses to display completely.
2.What should it do? Could you please add the additional feature in
If .Cells(ay, ax) = "MTM" Then
.Cells(ay, 9) = .Cells(ay, 7) + .Cells(ay, 8)
Else
.Cells(ay, 9) = .Cells(ay, 7) - .Cells(ay, 8)
In the code that I provided above please.
3.Have You tested it?Yes
4.What should change? Had an idea to add additional check - If in column J the comment is going to start as MTM break or Known MTM break, IA break or known IA break, Notional Break or Known Notional Break, Unmatched break.
Scenario 1 – after hitting the macro button and I go ahead and manually select break type from column F. Assume the comment has started with “Known Notional break” or “MTM break” however I go ahead and select MTM from drop down which is incorrect- at this point of time please code that will need to show a pop up indicating our selection from down is incorrect.
Here I will make sure all the comments begins with the name of break type example use raw file attached. On break report row 2, Comment would come to Column J starting with “Notional Break - As CS has confirmed that the trades with # are pending settlement trades and will be off the portfolio post final settlement, requested for the settlement date” And in case by mistake I select as MTM from Column F drop down then we need a pop saying incorrect selection. This step is just to ensure we are flagging correct break type in column F and the corresponding comments are pulled correct.