Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Sub CalcHedge2()
  2. nTotNav = 0
  3. nAccHedge = 0
  4. nLastHedge = 0
  5.  
  6. For nHedge = 1 To 9999
  7. If Left(Sheets("GLOBALNAV").Cells(nHedge, 3), 13) = "EURO STOXX 50" Then
  8. nCalcHedge = Sheets("GLOBALNAV").Cells(nHedge, 5) * Sheets("GLOBALNAV").Cells(nHedge, 10) * 10
  9. nAccHedge = nAccHedge + nCalcHedge
  10. nLastHedge = nHedge
  11. End If
  12. Next
  13.  
  14. For nSrcNav = nLastHedge To 9999
  15. If Sheets("GLOBALNAV").Cells(nSrcNav, 2) = "TOTAL NET ASSET VALUE" Then
  16. nTotNav = Sheets("GLOBALNAV").Cells(nSrcNav, 4)
  17. Exit For
  18. End If
  19. Next
  20.  
  21. Sheets("GV9K-Stat").Range("J31") = nAccHedge / nTotNav
  22. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement